diff options
Diffstat (limited to 'src/api/admin/router_v1.rs')
-rw-r--r-- | src/api/admin/router_v1.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/api/admin/router_v1.rs b/src/api/admin/router_v1.rs index 0b4901ea..138a801d 100644 --- a/src/api/admin/router_v1.rs +++ b/src/api/admin/router_v1.rs @@ -7,12 +7,6 @@ use garage_api_common::router_macros::*; use crate::error::*; use crate::router_v0; -pub enum Authorization { - None, - MetricsToken, - AdminToken, -} - router_match! {@func /// List of all Admin API endpoints. @@ -211,15 +205,6 @@ impl Endpoint { ))), } } - /// Get the kind of authorization which is required to perform the operation. - pub fn authorization_type(&self) -> Authorization { - match self { - Self::Health => Authorization::None, - Self::CheckDomain => Authorization::None, - Self::Metrics => Authorization::MetricsToken, - _ => Authorization::AdminToken, - } - } } generateQueryParameters! { |