2017-11-07 15:49:56 +00:00
|
|
|
package pages
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/aerogo/aero"
|
2017-11-11 14:09:30 +00:00
|
|
|
"github.com/aerogo/layout"
|
|
|
|
"github.com/animenotifier/notify.moe/layout"
|
2018-04-25 18:03:35 +00:00
|
|
|
"github.com/animenotifier/notify.moe/pages/index/amvroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/animeroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/apiroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/characterroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/companyroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/coreroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/exploreroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/forumroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/grouproutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/importroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/quoteroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/searchroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/settingsroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/shoproutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/soundtrackroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/staffroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/userlistroutes"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/index/userroutes"
|
2017-11-07 15:49:56 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Configure registers the page routes in the application.
|
|
|
|
func Configure(app *aero.Application) {
|
2017-11-11 14:14:16 +00:00
|
|
|
l := layout.New(app)
|
2017-11-11 14:09:30 +00:00
|
|
|
|
|
|
|
// Set render function for the layout
|
2017-11-11 14:14:16 +00:00
|
|
|
l.Render = fullpage.Render
|
2017-11-11 14:09:30 +00:00
|
|
|
|
2018-04-25 18:03:35 +00:00
|
|
|
// Register the routes
|
|
|
|
coreroutes.Register(l)
|
|
|
|
userroutes.Register(l)
|
|
|
|
characterroutes.Register(l)
|
|
|
|
exploreroutes.Register(l)
|
|
|
|
amvroutes.Register(l)
|
|
|
|
forumroutes.Register(l)
|
|
|
|
animeroutes.Register(l)
|
|
|
|
userlistroutes.Register(l)
|
|
|
|
quoteroutes.Register(l)
|
|
|
|
companyroutes.Register(l)
|
|
|
|
soundtrackroutes.Register(l)
|
|
|
|
grouproutes.Register(l)
|
|
|
|
searchroutes.Register(l)
|
|
|
|
importroutes.Register(l)
|
|
|
|
shoproutes.Register(l, app)
|
|
|
|
settingsroutes.Register(l)
|
|
|
|
staffroutes.Register(l)
|
|
|
|
apiroutes.Register(l, app)
|
2018-03-09 18:04:06 +00:00
|
|
|
|
2017-11-07 15:49:56 +00:00
|
|
|
// Mixed
|
2018-03-23 00:43:45 +00:00
|
|
|
// l.Page("/database", database.Get)
|
|
|
|
// app.Get("/api/select/:data-type/where/:field/is/:field-value", database.Select)
|
2017-11-07 15:49:56 +00:00
|
|
|
}
|