23 lines
608 B
Go
Raw Normal View History

package amvroutes
import (
2019-06-03 03:20:17 +00:00
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/pages/amv"
"github.com/animenotifier/notify.moe/pages/amvs"
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) {
// AMV
2019-06-03 03:20:17 +00:00
page.Get(app, "/amv/:id", amv.Get)
page.Get(app, "/amv/:id/edit", amv.Edit)
page.Get(app, "/amv/:id/history", amv.History)
// AMVs
2019-06-03 03:20:17 +00:00
page.Get(app, "/amvs", amvs.Latest)
page.Get(app, "/amvs/from/:index", amvs.Latest)
page.Get(app, "/amvs/best", amvs.Best)
page.Get(app, "/amvs/best/from/:index", amvs.Best)
}