allow put request

This commit is contained in:
Paul Zinselmeyer 2023-04-20 14:59:08 +02:00
parent 255172d841
commit 0f5e846def

View file

@ -118,7 +118,7 @@ async fn main() {
let app = Router::new() let app = Router::new()
.route("/", get(openid::handle_login)) .route("/", get(openid::handle_login))
.route("/login/:id", get(openid::handle_callback)) .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); .with_state(state);
axum::Server::bind(&"0.0.0.0:3000".parse().unwrap()) axum::Server::bind(&"0.0.0.0:3000".parse().unwrap())
.serve(app.into_make_service()) .serve(app.into_make_service())