2018-04-25 18:03:35 +00:00
|
|
|
package amvroutes
|
|
|
|
|
|
|
|
import (
|
2019-06-03 03:20:17 +00:00
|
|
|
"github.com/aerogo/aero"
|
2018-04-25 18:03:35 +00:00
|
|
|
"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"
|
2018-04-25 18:03:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Register registers the page routes.
|
2019-06-03 03:20:17 +00:00
|
|
|
func Register(app *aero.Application) {
|
2018-04-25 18:03:35 +00:00
|
|
|
// 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)
|
2018-04-25 18:03:35 +00:00
|
|
|
|
|
|
|
// 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)
|
2018-04-25 18:03:35 +00:00
|
|
|
}
|