aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/router.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-17 17:44:00 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-17 17:44:00 +0200
commit5072dbd2282736b3254627c26cfcf897505330e6 (patch)
tree814c55b0798b4093de0f46a0528718e377e3e22d /src/api/admin/router.rs
parent2ce3513c108a53bdcc5a838704867a4499295d85 (diff)
downloadgarage-5072dbd2282736b3254627c26cfcf897505330e6.tar.gz
garage-5072dbd2282736b3254627c26cfcf897505330e6.zip
Add PutBucketWebsite and DeleteBucketWebsite to admin api
Diffstat (limited to 'src/api/admin/router.rs')
-rw-r--r--src/api/admin/router.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/api/admin/router.rs b/src/api/admin/router.rs
index 6961becb..ae9e6681 100644
--- a/src/api/admin/router.rs
+++ b/src/api/admin/router.rs
@@ -46,6 +46,12 @@ pub enum Endpoint {
DeleteBucket {
id: String,
},
+ PutBucketWebsite {
+ id: String,
+ },
+ DeleteBucketWebsite {
+ id: String,
+ },
// Bucket-Key Permissions
BucketAllowKey,
BucketDenyKey,
@@ -103,6 +109,8 @@ impl Endpoint {
GET "/bucket" => ListBuckets,
POST "/bucket" => CreateBucket,
DELETE "/bucket" if id => DeleteBucket (query::id),
+ PUT "/bucket/website" if id => PutBucketWebsite (query::id),
+ DELETE "/bucket/website" if id => DeleteBucketWebsite (query::id),
// Bucket-key permissions
POST "/bucket/allow" => BucketAllowKey,
POST "/bucket/deny" => BucketDenyKey,