feat: implements delete #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/delete"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
n/t
@ -254,0 +268,4 @@}};Ok(signature)could just wrap this up into the
match@ -0,0 +31,4 @@stamp: SystemTime::now(),};cache.insert(prefix(key), slip.clone()).await;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.
@ -132,6 +132,33 @@ pub async fn copy_file(}}pub async fn delete_file(short_id: &str, path: &str) -> Result<(), DataError> {document
@ -218,6 +219,131 @@ async fn key_path(req: &mut Request, res: &mut Response) {}}#[handler]document
@ -221,0 +249,4 @@res.render(Json(slip))}document