Can delete a movement
This commit is contained in:
@ -27,3 +27,9 @@ pub async fn get_list_of_account(account_id: AccountInPath) -> HttpResult {
|
||||
pub async fn get_single(movement: MovementInPath) -> HttpResult {
|
||||
Ok(HttpResponse::Ok().json(movement.movement()))
|
||||
}
|
||||
|
||||
/// Delete a movement
|
||||
pub async fn delete(movement: MovementInPath) -> HttpResult {
|
||||
movements_service::delete(movement.movement().id()).await?;
|
||||
Ok(HttpResponse::Accepted().finish())
|
||||
}
|
||||
|
Reference in New Issue
Block a user