diff --git a/codegen/tests/run-pass/complete-decorator.rs b/codegen/tests/run-pass/complete-decorator.rs index df2d574b..6d086515 100644 --- a/codegen/tests/run-pass/complete-decorator.rs +++ b/codegen/tests/run-pass/complete-decorator.rs @@ -10,8 +10,8 @@ struct User { name: String } -#[post("/", format = "application/json", form = "", rank = 2)] -fn get(name: &str, user: User, cookies: &Cookies) -> &'static str { "hi" } +#[post("/?", format = "application/json", form = "", rank = 2)] +fn get(name: &str, query: User, user: User, cookies: &Cookies) -> &'static str { "hi" } fn main() { let _ = routes![get];