Can delete inbox entry

This commit is contained in:
2025-05-08 16:57:05 +02:00
parent 6c41b66d1c
commit 6e0d0fb48d
3 changed files with 16 additions and 0 deletions

View File

@ -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())
}