mirror of
https://github.com/zzzzDev4/ias-tea-axum.git
synced 2025-04-21 07:41:21 +02:00
small bugfix in delete-method
This commit is contained in:
parent
30dc7571ca
commit
e84af166c1
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ async fn main(#[shuttle_shared_db::Postgres] pool: PgPool) -> shuttle_axum::Shut
|
|||
// teavail-device
|
||||
.route("/tea-by-rfid/:rfid", get(retrieve_tea_by_rfid))
|
||||
.route("/add-tea", post(add_tea))
|
||||
.route("/delete-tea", get(delete_tea_by_id))
|
||||
.route("/delete-tea/:id", get(delete_tea_by_id))
|
||||
//.route("/update-tea", post(update_tea_by_rfid)) // probably already covered by "update_tea_by_id"
|
||||
.with_state(state);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue