24 lines
789 B
Go
Raw Normal View History

package characterroutes
import (
2019-06-03 03:20:17 +00:00
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/pages/character"
"github.com/animenotifier/notify.moe/pages/characters"
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) {
// Characters
2019-06-03 03:20:17 +00:00
page.Get(app, "/characters", characters.Latest)
page.Get(app, "/characters/from/:index", characters.Latest)
page.Get(app, "/characters/best", characters.Best)
page.Get(app, "/characters/best/from/:index", characters.Best)
// Character
2019-06-03 03:20:17 +00:00
page.Get(app, "/character/:id", character.Get)
page.Get(app, "/character/:id/edit", character.Edit)
page.Get(app, "/character/:id/edit/images", character.EditImages)
page.Get(app, "/character/:id/history", character.History)
}