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.Latest) l.Page("/groups/from/:index", groups.Latest) l.Page("/groups/popular", groups.Popular) l.Page("/groups/popular/from/:index", groups.Popular) l.Page("/groups/joined", groups.Joined) l.Page("/groups/joined/from/:index", groups.Joined) l.Page("/group/:id", group.Feed) l.Page("/group/:id/info", group.Info) l.Page("/group/:id/members", group.Members) l.Page("/group/:id/edit", group.Edit) l.Page("/group/:id/edit/image", group.EditImage) l.Page("/group/:id/history", group.History) }