aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/router.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-06-14 13:45:27 +0200
committerAlex Auvolat <alex@adnab.me>2023-06-14 13:45:27 +0200
commit52376d47caf747f5cf93a21e5c15e4e6b8d991ee (patch)
tree68ce9c2267aa68cab578e541089515df2f0cbc27 /src/api/admin/router.rs
parent187240e539f30036eb76785227ee8095ef4dd355 (diff)
downloadgarage-52376d47caf747f5cf93a21e5c15e4e6b8d991ee.tar.gz
garage-52376d47caf747f5cf93a21e5c15e4e6b8d991ee.zip
admin api: change cluster status/layout to use lists and not maps (fix #377)
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..5af3ffb5 100644
--- a/src/api/admin/router.rs
+++ b/src/api/admin/router.rs
@@ -95,12 +95,12 @@ impl Endpoint {
GET "/check" => CheckWebsiteEnabled,
GET "/health" => Health,
GET "/metrics" => Metrics,
- GET "/v0/status" => GetClusterStatus,
+ GET "/v1/status" => GetClusterStatus,
GET "/v0/health" => GetClusterHealth,
POST "/v0/connect" => ConnectClusterNodes,
// Layout endpoints
- GET "/v0/layout" => GetClusterLayout,
- POST "/v0/layout" => UpdateClusterLayout,
+ GET "/v1/layout" => GetClusterLayout,
+ POST "/v1/layout" => UpdateClusterLayout,
POST "/v0/layout/apply" => ApplyClusterLayout,
POST "/v0/layout/revert" => RevertClusterLayout,
// API key endpoints