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())