2018-04-25 18:03:35 +00:00
|
|
|
package coreroutes
|
|
|
|
|
|
|
|
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/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 03:42:10 +00:00
|
|
|
"github.com/animenotifier/notify.moe/pages/welcome"
|
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) {
|
|
|
|
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 18:03:35 +00:00
|
|
|
|
|
|
|
// Browser extension
|
2019-06-03 03:20:17 +00:00
|
|
|
page.Get(app, "/extension/embed", embed.Get)
|
2018-04-25 18:03:35 +00:00
|
|
|
}
|