Add query param to complete decorator test.

This commit is contained in:
Sergio Benitez 2016-10-07 18:45:55 -07:00
parent 6578de4615
commit d321e1de8d
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ struct User {
name: String name: String
} }
#[post("/<name>", format = "application/json", form = "<user>", rank = 2)] #[post("/<name>?<query>", format = "application/json", form = "<user>", rank = 2)]
fn get(name: &str, user: User, cookies: &Cookies) -> &'static str { "hi" } fn get(name: &str, query: User, user: User, cookies: &Cookies) -> &'static str { "hi" }
fn main() { fn main() {
let _ = routes![get]; let _ = routes![get];