diff options
author | Alex Auvolat <alex@adnab.me> | 2023-06-14 17:12:37 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-06-14 17:12:37 +0200 |
commit | a83a092c032058728f191119de99f38844aa74f5 (patch) | |
tree | de1eba078db8597efcc4909100e18491a3790413 /src/api/admin/router.rs | |
parent | 7895f99d3afc6e97f62f52abe06a6ee8d0f0617f (diff) | |
download | garage-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.rs | 2 |
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), |