4
0
Fork 0
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:
zzzz 2024-06-13 23:44:51 +02:00
parent 30dc7571ca
commit e84af166c1

View file

@ -41,7 +41,7 @@ async fn main(#[shuttle_shared_db::Postgres] pool: PgPool) -> shuttle_axum::Shut
// teavail-device // teavail-device
.route("/tea-by-rfid/:rfid", get(retrieve_tea_by_rfid)) .route("/tea-by-rfid/:rfid", get(retrieve_tea_by_rfid))
.route("/add-tea", post(add_tea)) .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" //.route("/update-tea", post(update_tea_by_rfid)) // probably already covered by "update_tea_by_id"
.with_state(state); .with_state(state);