2018-04-25 20:03:35 +02:00
|
|
|
package coreroutes
|
|
|
|
|
|
|
|
import (
|
2019-06-03 12:20:17 +09:00
|
|
|
"github.com/aerogo/aero"
|
2018-04-25 20:03:35 +02:00
|
|
|
"github.com/animenotifier/notify.moe/pages/embed"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/home"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/login"
|
|
|
|
"github.com/animenotifier/notify.moe/pages/terms"
|
2018-11-15 12:42:10 +09:00
|
|
|
"github.com/animenotifier/notify.moe/pages/welcome"
|
2019-06-03 12:20:17 +09:00
|
|
|
"github.com/animenotifier/notify.moe/utils/page"
|
2018-04-25 20:03:35 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// Register registers the page routes.
|
2019-06-03 12:20:17 +09:00
|
|
|
func Register(app *aero.Application) {
|
|
|
|
page.Get(app, "/", home.Get)
|
|
|
|
page.Get(app, "/login", login.Get)
|
|
|
|
page.Get(app, "/welcome", welcome.Get)
|
|
|
|
page.Get(app, "/terms", terms.Get)
|
2018-04-25 20:03:35 +02:00
|
|
|
|
|
|
|
// Browser extension
|
2019-06-03 12:20:17 +09:00
|
|
|
page.Get(app, "/extension/embed", embed.Get)
|
2018-04-25 20:03:35 +02:00
|
|
|
}
|