29 lines
851 B
Go
Raw Normal View History

package forumroutes
import (
2019-06-03 03:20:17 +00:00
"github.com/aerogo/aero"
"github.com/animenotifier/notify.moe/pages/forum"
"github.com/animenotifier/notify.moe/pages/newthread"
"github.com/animenotifier/notify.moe/pages/post"
"github.com/animenotifier/notify.moe/pages/post/editpost"
"github.com/animenotifier/notify.moe/pages/thread"
"github.com/animenotifier/notify.moe/pages/thread/editthread"
2019-06-03 03:20:17 +00:00
"github.com/animenotifier/notify.moe/utils/page"
)
// Register registers the page routes.
2019-06-03 03:20:17 +00:00
func Register(app *aero.Application) {
// Forum
2019-06-03 03:20:17 +00:00
page.Get(app, "/forum", forum.Get)
page.Get(app, "/forum/:tag", forum.Get)
// Thread
2019-06-03 03:20:17 +00:00
page.Get(app, "/thread/:id", thread.Get)
page.Get(app, "/thread/:id/edit", editthread.Get)
page.Get(app, "/new/thread", newthread.Get)
// Post
2019-06-03 03:20:17 +00:00
page.Get(app, "/post/:id", post.Get)
page.Get(app, "/post/:id/edit", editpost.Get)
}