allow put request
This commit is contained in:
parent
255172d841
commit
0f5e846def
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue