mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-06 00:00:17 +02:00
update examples
This commit is contained in:
@@ -34,7 +34,7 @@ async fn main() {
|
||||
.await
|
||||
.expect("failed to create `uploads` directory");
|
||||
|
||||
let app = Router::new()
|
||||
let app = Router::without_state()
|
||||
.route("/", get(show_form).post(accept_form))
|
||||
.route("/file/:file_name", post(save_request_body));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user