20 lines
724 B
Go
Raw Normal View History

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