2018-04-25 18:03:35 +00:00
|
|
|
package exploreroutes
|
|
|
|
|
|
|
|
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/explore"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/explore/explorecolor"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/explore/halloffame"
|
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
|
|
|
// Explore
|
2019-06-03 03:20:17 +00:00
|
|
|
page.Get(app, "/explore", explore.Filter)
|
|
|
|
page.Get(app, "/explore/anime/:year/:season/:status/:type", explore.Filter)
|
|
|
|
page.Get(app, "/explore/color/:color/anime", explorecolor.AnimeByAverageColor)
|
|
|
|
page.Get(app, "/explore/color/:color/anime/from/:index", explorecolor.AnimeByAverageColor)
|
|
|
|
page.Get(app, "/halloffame", halloffame.Get)
|
2018-04-25 18:03:35 +00:00
|
|
|
}
|