about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-14T21·28+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-14T21·28+0200
commitba33efd772575bbd51643fbf2aa176df3bced258 (patch)
treecc4cb1d6850b16f54144cdbc113ef8fa0aef7c20 /src/main.rs
parente0b1bc2627d65a759003842c4dc508e9f842da35 (diff)
refactor(handlers): Receive search terms via query parameters
There are several reasons for this, but one important one is that
people expect to be able to share search links.
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 92eeca48df64..851e810412ee 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -153,7 +153,7 @@ fn main() {
             .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("/search", |r| r.method(Method::POST).with2(search_forum))
+            .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));