We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7813f27 commit 1e65ce5Copy full SHA for 1e65ce5
rust/silent/src/main.rs
@@ -9,7 +9,8 @@ async fn main() {
9
let route = Route::new("").get(index).append(
10
Route::new("user")
11
.append(
12
- Route::new("<id>").get(|req| async move { req.get_path_params::<String>("id") }),
+ Route::new("<id>")
13
+ .get(|req: Request| async move { req.get_path_params::<String>("id") }),
14
)
15
.post(index),
16
);
0 commit comments