admin api: small fixes

This commit is contained in:
Alex Auvolat
2025-01-29 12:06:58 +01:00
parent 420bbc162d
commit 4f0b923c4f
6 changed files with 41 additions and 10 deletions
+1 -1
View File
@@ -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()),
}
}