21 lines
635 B
Go
Raw Normal View History

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