aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/router_v2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/admin/router_v2.rs')
-rw-r--r--src/api/admin/router_v2.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/admin/router_v2.rs b/src/api/admin/router_v2.rs
index 6faa2ab1..45613ea4 100644
--- a/src/api/admin/router_v2.rs
+++ b/src/api/admin/router_v2.rs
@@ -52,8 +52,8 @@ impl AdminApiRequest {
POST DeleteBucket (query::id),
POST UpdateBucket (body_field, query::id),
// Bucket-key permissions
- POST BucketAllowKey (body),
- POST BucketDenyKey (body),
+ POST AllowBucketKey (body),
+ POST DenyBucketKey (body),
// Bucket aliases
POST AddGlobalBucketAlias (body),
POST RemoveGlobalBucketAlias (body),
@@ -167,11 +167,11 @@ impl AdminApiRequest {
// Bucket-key permissions
Endpoint::BucketAllowKey => {
let req = parse_json_body::<BucketKeyPermChangeRequest, _, Error>(req).await?;
- Ok(AdminApiRequest::BucketAllowKey(BucketAllowKeyRequest(req)))
+ Ok(AdminApiRequest::AllowBucketKey(AllowBucketKeyRequest(req)))
}
Endpoint::BucketDenyKey => {
let req = parse_json_body::<BucketKeyPermChangeRequest, _, Error>(req).await?;
- Ok(AdminApiRequest::BucketDenyKey(BucketDenyKeyRequest(req)))
+ Ok(AdminApiRequest::DenyBucketKey(DenyBucketKeyRequest(req)))
}
// Bucket aliasing
Endpoint::GlobalAliasBucket { id, alias } => Ok(AdminApiRequest::AddGlobalBucketAlias(