about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-15T10·38+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-15T10·38+0200
commit9cee48f2dac7400fc0df78b8790ff1e1600a632e (patch)
treecd21cdad21f6dc8c046be7819564ba8d80005f00 /src/main.rs
parent02a466a28be4c6fdcd88075d6345841759ff630c (diff)
feat(handlers): Determine whether current user can edit a post
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 851e810412ee..f748be1a7bc6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -152,7 +152,7 @@ fn main() {
             .resource("/thread/new", |r| r.method(Method::GET).with(new_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("/thread/{id}", |r| r.method(Method::GET).with3(forum_thread))
             .resource("/search", |r| r.method(Method::GET).with2(search_forum))
             .resource("/oidc/login", |r| r.method(Method::GET).with(login))
             .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback));