diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-09T07·20+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-09T07·20+0200 |
commit | 7c73949066cf1b730a2c8c3408fa016048538716 (patch) | |
tree | a9cc78f0b8fb147c9f91ff8a9b8b20626065c3bc /src/main.rs | |
parent | 64453ec6834f657de8c63276fb93ff8b87cf6017 (diff) |
feat(handlers): Extract & add author to thread and post information
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 59e711ad4312..8400f570a9be 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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))}) |