Refactor page routes into multiple submodules
This commit is contained in:
16
pages/index/grouproutes/grouproutes.go
Normal file
16
pages/index/grouproutes/grouproutes.go
Normal file
@ -0,0 +1,16 @@
|
||||
package grouproutes
|
||||
|
||||
import (
|
||||
"github.com/aerogo/layout"
|
||||
"github.com/animenotifier/notify.moe/pages/group"
|
||||
"github.com/animenotifier/notify.moe/pages/groups"
|
||||
)
|
||||
|
||||
// Register registers the page routes.
|
||||
func Register(l *layout.Layout) {
|
||||
// Groups
|
||||
l.Page("/groups", groups.Get)
|
||||
l.Page("/group/:id", group.Get)
|
||||
l.Page("/group/:id/edit", group.Edit)
|
||||
l.Page("/group/:id/forum", group.Forum)
|
||||
}
|
Reference in New Issue
Block a user