aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/router.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-08-08 11:05:42 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-08-08 11:05:42 +0200
commit24e533f2623ac6ebbdac92efa9c08b6092c59daf (patch)
tree5fd450dad6cc7cef64db62327869c7d7bf664e28 /src/api/admin/router.rs
parent67b1457c77d930cd12f83f5cf07ec7f2376fa00c (diff)
downloadgarage-24e533f2623ac6ebbdac92efa9c08b6092c59daf.tar.gz
garage-24e533f2623ac6ebbdac92efa9c08b6092c59daf.zip
support {s3,web}.root_domains in /check endpointbug/support-root-domains-on-demand-tls
Diffstat (limited to 'src/api/admin/router.rs')
-rw-r--r--src/api/admin/router.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/admin/router.rs b/src/api/admin/router.rs
index 0dcb1546..0225f18b 100644
--- a/src/api/admin/router.rs
+++ b/src/api/admin/router.rs
@@ -17,7 +17,7 @@ router_match! {@func
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Endpoint {
Options,
- CheckWebsiteEnabled,
+ CheckDomain,
Health,
Metrics,
GetClusterStatus,
@@ -92,7 +92,7 @@ impl Endpoint {
let res = router_match!(@gen_path_parser (req.method(), path, query) [
OPTIONS _ => Options,
- GET "/check" => CheckWebsiteEnabled,
+ GET "/check" => CheckDomain,
GET "/health" => Health,
GET "/metrics" => Metrics,
GET "/v0/status" => GetClusterStatus,
@@ -138,7 +138,7 @@ impl Endpoint {
pub fn authorization_type(&self) -> Authorization {
match self {
Self::Health => Authorization::None,
- Self::CheckWebsiteEnabled => Authorization::None,
+ Self::CheckDomain => Authorization::None,
Self::Metrics => Authorization::MetricsToken,
_ => Authorization::AdminToken,
}