Better routes splitting
This commit is contained in:
15
pages/index/activityroutes/activityroutes.go
Normal file
15
pages/index/activityroutes/activityroutes.go
Normal file
@ -0,0 +1,15 @@
|
||||
package activityroutes
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/pages/activity"
|
||||
"github.com/animenotifier/notify.moe/utils/page"
|
||||
)
|
||||
|
||||
// Register registers the page routes.
|
||||
func Register(app *aero.Application) {
|
||||
page.Get(app, "/activity", activity.Global)
|
||||
page.Get(app, "/activity/from/:index", activity.Global)
|
||||
page.Get(app, "/activity/followed", activity.Followed)
|
||||
page.Get(app, "/activity/followed/from/:index", activity.Followed)
|
||||
}
|
Reference in New Issue
Block a user