Adds hit route

This commit is contained in:
2025-10-05 20:35:23 +02:00
parent 37a83275bd
commit f45900d69d
5 changed files with 80 additions and 0 deletions

View File

@@ -87,6 +87,8 @@ pub fn delete(id: String, state: &State<AppState>) -> Result<Status, Status> {
.execute(&mut *db)
.ok();
// TODO: maybe delete all associated hits?
match count {
Some(count) if count > 0 => Ok(Status::Ok),
Some(_) => Ok(Status::NotFound),