Added advanced thread and post editing for admins

This commit is contained in:
2018-06-03 08:52:38 +09:00
parent 0fd8692100
commit b5f4585edd
6 changed files with 80 additions and 0 deletions

View File

@ -5,7 +5,9 @@ import (
"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"
)
// Register registers the page routes.
@ -16,8 +18,10 @@ func Register(l *layout.Layout) {
// Thread
l.Page("/thread/:id", thread.Get)
l.Page("/thread/:id/edit", editthread.Get)
l.Page("/new/thread", newthread.Get)
// Post
l.Page("/post/:id", post.Get)
l.Page("/post/:id/edit", editpost.Get)
}