Can delete inbox entry
This commit is contained in:
@ -56,3 +56,9 @@ pub async fn update(
|
||||
|
||||
Ok(HttpResponse::Ok().json(inbox_service::get_by_id(inbox_entry.as_ref().id()).await?))
|
||||
}
|
||||
|
||||
/// Delete a single inbox entry
|
||||
pub async fn delete(inbox_entry: InboxEntryInPath) -> HttpResult {
|
||||
inbox_service::delete(inbox_entry.as_ref().id()).await?;
|
||||
Ok(HttpResponse::Accepted().finish())
|
||||
}
|
||||
|
Reference in New Issue
Block a user