aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-12 11:02:36 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-12 11:02:36 +0200
commitfe399a326506a9d8870cb7783a57495849793d2c (patch)
tree0b16bbbd38b7cce49a65093251ccd5f00d75f0eb /src/api/admin/api_server.rs
parentde1a5b87b6980c66966fbe2b2f35b925fd83308b (diff)
downloadgarage-fe399a326506a9d8870cb7783a57495849793d2c.tar.gz
garage-fe399a326506a9d8870cb7783a57495849793d2c.zip
DeleteBucket
Diffstat (limited to 'src/api/admin/api_server.rs')
-rw-r--r--src/api/admin/api_server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/admin/api_server.rs b/src/api/admin/api_server.rs
index 783ecfcb..4366cbd6 100644
--- a/src/api/admin/api_server.rs
+++ b/src/api/admin/api_server.rs
@@ -146,6 +146,7 @@ impl ApiHandler for AdminApiServer {
handle_get_bucket_info(&self.garage, id, global_alias).await
}
Endpoint::CreateBucket => handle_create_bucket(&self.garage, req).await,
+ Endpoint::DeleteBucket { id } => handle_delete_bucket(&self.garage, id).await,
_ => Err(Error::NotImplemented(format!(
"Admin endpoint {} not implemented yet",
endpoint.name()