24 lines
927 B
Go
Raw Normal View History

package soundtrackroutes
import (
2019-06-03 03:20:17 +00:00
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/pages/soundtrack"
"github.com/animenotifier/notify.moe/pages/soundtracks"
2019-06-03 03:20:17 +00:00
"github.com/animenotifier/notify.moe/utils/page"
)
// Register registers the page routes.
2019-06-03 03:20:17 +00:00
func Register(app *aero.Application) {
// Soundtracks
2019-06-03 03:20:17 +00:00
page.Get(app, "/soundtracks", soundtracks.Latest)
page.Get(app, "/soundtracks/from/:index", soundtracks.Latest)
page.Get(app, "/soundtracks/best", soundtracks.Best)
page.Get(app, "/soundtracks/best/from/:index", soundtracks.Best)
page.Get(app, "/soundtracks/tag/:tag", soundtracks.FilterByTag)
page.Get(app, "/soundtracks/tag/:tag/from/:index", soundtracks.FilterByTag)
page.Get(app, "/soundtrack/:id", soundtrack.Get)
page.Get(app, "/soundtrack/:id/lyrics", soundtrack.Lyrics)
page.Get(app, "/soundtrack/:id/edit", soundtrack.Edit)
page.Get(app, "/soundtrack/:id/history", soundtrack.History)
}