feat(handlers): Extract & add author to thread and post information
This commit is contained in:
parent
64453ec683
commit
7c73949066
3 changed files with 46 additions and 6 deletions
|
|
@ -113,8 +113,8 @@ fn main() {
|
|||
.middleware(sessions)
|
||||
.middleware(RequireLogin)
|
||||
.resource("/", |r| r.method(Method::GET).with(forum_index))
|
||||
.resource("/thread/submit", |r| r.method(Method::POST).with2(submit_thread))
|
||||
.resource("/thread/reply", |r| r.method(Method::POST).with2(reply_thread))
|
||||
.resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread))
|
||||
.resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread))
|
||||
.resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread))
|
||||
.resource("/oidc/login", |r| r.method(Method::GET).with(login))
|
||||
.resource("/oidc/callback", |r| r.method(Method::POST).with3(callback))})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue