diff --git a/project/backend/src/handlers/authentication.rs b/project/backend/src/handlers/authentication.rs index 515f22f..4824709 100644 --- a/project/backend/src/handlers/authentication.rs +++ b/project/backend/src/handlers/authentication.rs @@ -46,7 +46,7 @@ pub async fn register( .map_err(|e| HttpResponse::InternalServerError().json(e.to_string())) } -#[post("/auth/delete")] +#[delete("/auth/delete")] pub async fn delete( user: LoggedUser, user_to_delete: web::Json,