Change delete user method to delete
This commit is contained in:
parent
95e8347efc
commit
5b8d64ba8f
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ pub async fn register(
|
||||||
.map_err(|e| HttpResponse::InternalServerError().json(e.to_string()))
|
.map_err(|e| HttpResponse::InternalServerError().json(e.to_string()))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[post("/auth/delete")]
|
#[delete("/auth/delete")]
|
||||||
pub async fn delete(
|
pub async fn delete(
|
||||||
user: LoggedUser,
|
user: LoggedUser,
|
||||||
user_to_delete: web::Json<DeleteUser>,
|
user_to_delete: web::Json<DeleteUser>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue