Add DELETE /family/{id}/member/{id_member}

This commit is contained in:
2023-08-05 13:56:24 +02:00
parent c6d9264d94
commit aa351bfae9
2 changed files with 10 additions and 0 deletions

View File

@ -286,3 +286,9 @@ pub async fn update(m: FamilyAndMemberInPath, req: web::Json<MemberRequest>) ->
Ok(HttpResponse::Accepted().finish())
}
/// Delete a member
pub async fn delete(m: FamilyAndMemberInPath) -> HttpResult {
members_service::delete(&m).await?;
Ok(HttpResponse::Ok().finish())
}