2018-04-25 18:03:35 +00:00
|
|
|
package quoteroutes
|
|
|
|
|
|
|
|
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/quote"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/quotes"
|
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
|
|
|
// 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)
|
2018-04-25 18:03:35 +00:00
|
|
|
}
|