45 lines
1.1 KiB
Go
Raw Normal View History

package coreroutes
import (
"github.com/aerogo/layout"
2018-10-31 05:27:48 +00:00
"github.com/animenotifier/notify.moe/pages/activity"
"github.com/animenotifier/notify.moe/pages/calendar"
"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/statistics"
"github.com/animenotifier/notify.moe/pages/terms"
2018-11-15 03:42:10 +00:00
"github.com/animenotifier/notify.moe/pages/welcome"
)
// Register registers the page routes.
func Register(l *layout.Layout) {
// Front page
l.Page("/", home.Get)
// Login
l.Page("/login", login.Get)
2018-11-15 03:42:10 +00:00
// Welcome
l.Page("/welcome", welcome.Get)
2018-10-31 05:27:48 +00:00
// Activity
l.Page("/activity", activity.Global)
2018-11-12 06:05:46 +00:00
l.Page("/activity/from/:index", activity.Global)
l.Page("/activity/followed", activity.Followed)
2018-11-12 06:05:46 +00:00
l.Page("/activity/followed/from/:index", activity.Followed)
2018-10-31 05:27:48 +00:00
// Calendar
l.Page("/calendar", calendar.Get)
// Statistics
l.Page("/statistics", statistics.Get)
l.Page("/statistics/anime", statistics.Anime)
// Legal stuff
l.Page("/terms", terms.Get)
// Browser extension
l.Page("/extension/embed", embed.Get)
}