aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/api_server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <lx@deuxfleurs.fr>2025-01-29 12:06:58 +0100
committerAlex Auvolat <lx@deuxfleurs.fr>2025-01-29 19:26:16 +0100
commit4f0b923c4f2bc9be80bf1e7ca61cc66c354cc7e0 (patch)
tree97cf8f30bf22e576aa55a92778678f99eb9b4437 /src/api/admin/api_server.rs
parent420bbc162dffd1246544168cf2e935efc60c5c98 (diff)
downloadgarage-4f0b923c4f2bc9be80bf1e7ca61cc66c354cc7e0.tar.gz
garage-4f0b923c4f2bc9be80bf1e7ca61cc66c354cc7e0.zip
admin api: small fixes
Diffstat (limited to 'src/api/admin/api_server.rs')
-rw-r--r--src/api/admin/api_server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin/api_server.rs b/src/api/admin/api_server.rs
index 92da3245..b835322d 100644
--- a/src/api/admin/api_server.rs
+++ b/src/api/admin/api_server.rs
@@ -176,7 +176,7 @@ impl ApiHandler for AdminApiServer {
impl ApiEndpoint for Endpoint {
fn name(&self) -> Cow<'static, str> {
match self {
- Self::Old(endpoint_v1) => Cow::Owned(format!("v1:{}", endpoint_v1.name())),
+ Self::Old(endpoint_v1) => Cow::Borrowed(endpoint_v1.name()),
Self::New(path) => Cow::Owned(path.clone()),
}
}