aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/router.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-08-28 09:18:13 +0000
committerAlex <alex@adnab.me>2023-08-28 09:18:13 +0000
commitd539a56d3a3f2df5f9e69c7afc3156b698f5183c (patch)
treef4ea09912badc609656650592c8c6188471d0794 /src/api/admin/router.rs
parentbd50333ade4085fe4ca1d5dafc5f7ca280882879 (diff)
parent24e533f2623ac6ebbdac92efa9c08b6092c59daf (diff)
downloadgarage-d539a56d3a3f2df5f9e69c7afc3156b698f5183c.tar.gz
garage-d539a56d3a3f2df5f9e69c7afc3156b698f5183c.zip
Merge pull request 'Support {s3,web}.root_domains for the Caddy on-demand TLS endpoint (<admin>/check?domain=xx)' (#610) from bug/support-root-domains-on-demand-tls into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/610
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,
}