aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/router.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/admin/router.rs')
-rw-r--r--src/api/admin/router.rs6
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() {