17 lines
394 B
Go
17 lines
394 B
Go
|
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)
|
||
|
}
|