diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-12 11:19:41 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-12 11:19:41 +0200 |
commit | fc2f73ddb5ecaca250daa7b034fe59fb8c47f570 (patch) | |
tree | f4287c3a90c32e2c9ea69c14085273ec32544749 /src/api/admin/router.rs | |
parent | fe399a326506a9d8870cb7783a57495849793d2c (diff) | |
download | garage-fc2f73ddb5ecaca250daa7b034fe59fb8c47f570.tar.gz garage-fc2f73ddb5ecaca250daa7b034fe59fb8c47f570.zip |
BucketAllowKey and BucketDenyKey
Diffstat (limited to 'src/api/admin/router.rs')
-rw-r--r-- | src/api/admin/router.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/api/admin/router.rs b/src/api/admin/router.rs index a6e1c848..6f787fe9 100644 --- a/src/api/admin/router.rs +++ b/src/api/admin/router.rs @@ -46,6 +46,9 @@ pub enum Endpoint { DeleteBucket { id: String, }, + // Bucket-Key Permissions + BucketAllowKey, + BucketDenyKey, }} impl Endpoint { @@ -81,6 +84,9 @@ impl Endpoint { GET "/bucket" => ListBuckets, POST "/bucket" => CreateBucket, DELETE "/bucket" if id => DeleteBucket (query::id), + // Bucket-key permissions + POST "/bucket/allow" => BucketAllowKey, + POST "/bucket/deny" => BucketDenyKey, ]); if let Some(message) = query.nonempty_message() { |