Profile tracks is now a separate package

This commit is contained in:
2018-03-14 18:21:22 +01:00
parent 1a380f3139
commit 5b05d82b7d
7 changed files with 98 additions and 76 deletions

View File

@ -43,6 +43,7 @@ import (
"github.com/animenotifier/notify.moe/pages/popular"
"github.com/animenotifier/notify.moe/pages/posts"
"github.com/animenotifier/notify.moe/pages/profile"
"github.com/animenotifier/notify.moe/pages/profile/profiletracks"
"github.com/animenotifier/notify.moe/pages/quote"
"github.com/animenotifier/notify.moe/pages/quotes"
"github.com/animenotifier/notify.moe/pages/recommended"
@ -169,10 +170,10 @@ func Configure(app *aero.Application) {
l.Page("/user/:nick", profile.Get)
l.Page("/user/:nick/forum/threads", profile.GetThreadsByUser)
l.Page("/user/:nick/forum/posts", profile.GetPostsByUser)
l.Page("/user/:nick/soundtracks/added", profile.GetSoundTracksAddedByUser)
l.Page("/user/:nick/soundtracks/added/from/:index", profile.GetSoundTracksAddedByUser)
l.Page("/user/:nick/soundtracks/liked", profile.GetSoundTracksLikedByUser)
l.Page("/user/:nick/soundtracks/liked/from/:index", profile.GetSoundTracksLikedByUser)
l.Page("/user/:nick/soundtracks/added", profiletracks.Added)
l.Page("/user/:nick/soundtracks/added/from/:index", profiletracks.Added)
l.Page("/user/:nick/soundtracks/liked", profiletracks.Liked)
l.Page("/user/:nick/soundtracks/liked/from/:index", profiletracks.Liked)
l.Page("/user/:nick/stats", profile.GetStatsByUser)
l.Page("/user/:nick/followers", profile.GetFollowers)
l.Page("/user/:nick/animelist", animelist.Get)