aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/router.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-06-14 17:12:37 +0200
committerAlex Auvolat <alex@adnab.me>2023-06-14 17:12:37 +0200
commita83a092c032058728f191119de99f38844aa74f5 (patch)
treede1eba078db8597efcc4909100e18491a3790413 /src/api/admin/router.rs
parent7895f99d3afc6e97f62f52abe06a6ee8d0f0617f (diff)
downloadgarage-a83a092c032058728f191119de99f38844aa74f5.tar.gz
garage-a83a092c032058728f191119de99f38844aa74f5.zip
admin: uniformize layout api and improve code
Diffstat (limited to 'src/api/admin/router.rs')
-rw-r--r--src/api/admin/router.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin/router.rs b/src/api/admin/router.rs
index 97ad6f76..d54dabe8 100644
--- a/src/api/admin/router.rs
+++ b/src/api/admin/router.rs
@@ -102,7 +102,7 @@ impl Endpoint {
// Layout endpoints
GET "/v1/layout" => GetClusterLayout,
POST "/v1/layout" => UpdateClusterLayout,
- POST ("/v0/layout/apply" | "/v1/layout/apply") => ApplyClusterLayout,
+ POST "/v1/layout/apply" => ApplyClusterLayout,
POST ("/v0/layout/revert" | "/v1/layout/revert") => RevertClusterLayout,
// API key endpoints
GET "/v1/key" if id => GetKeyInfo (query_opt::id, query_opt::search, query_opt::show_secret_key),