feat: implements delete #15

Merged
treadful merged 5 commits from feat/delete into main 2025-09-30 01:11:32 +00:00
Owner

n/t

n/t
@ -254,0 +268,4 @@
}
};
Ok(signature)
Author
Owner

could just wrap this up into the match

could just wrap this up into the `match`
treadful marked this conversation as resolved
@ -0,0 +31,4 @@
stamp: SystemTime::now(),
};
cache.insert(prefix(key), slip.clone()).await;
Author
Owner

should consider moka's TTL for this. Unlikely to be much of a risk since nothing stores it, but can't always guarantee a well-implemented client in the future.

should consider moka's TTL for this. Unlikely to be much of a risk since nothing stores it, but can't always guarantee a well-implemented client in the future.
treadful marked this conversation as resolved
@ -132,6 +132,33 @@ pub async fn copy_file(
}
}
pub async fn delete_file(short_id: &str, path: &str) -> Result<(), DataError> {
Author
Owner

document

document
treadful marked this conversation as resolved
@ -218,6 +219,131 @@ async fn key_path(req: &mut Request, res: &mut Response) {
}
}
#[handler]
Author
Owner

document

document
treadful marked this conversation as resolved
@ -221,0 +249,4 @@
res.render(Json(slip))
}
Author
Owner

document

document
treadful marked this conversation as resolved
treadful deleted branch feat/delete 2025-09-30 01:11:33 +00:00
treadful referenced this pull request from a commit 2025-09-30 01:11:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
treadful/jot!15
No description provided.