From 0f5e846def6eb1cbb836132951e4a25ce5afad1f Mon Sep 17 00:00:00 2001 From: Paul Z Date: Thu, 20 Apr 2023 14:59:08 +0200 Subject: [PATCH] allow put request --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6d53dbc..35bd024 100644 --- a/src/main.rs +++ b/src/main.rs @@ -118,7 +118,7 @@ async fn main() { let app = Router::new() .route("/", get(openid::handle_login)) .route("/login/:id", get(openid::handle_callback)) - .route("/:id", get(get_item).post(post_item)) + .route("/:id", get(get_item).post(post_item).put(post_item)) .with_state(state); axum::Server::bind(&"0.0.0.0:3000".parse().unwrap()) .serve(app.into_make_service())