From 603ca192a7db6283f454814400e169b9216d7aeb Mon Sep 17 00:00:00 2001 From: Jere Vaara Date: Mon, 14 Oct 2024 18:54:25 +0300 Subject: [PATCH] Change path as per Alexey's feedback --- compute_tools/src/http/api.rs | 4 ++-- compute_tools/src/http/openapi_spec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compute_tools/src/http/api.rs b/compute_tools/src/http/api.rs index f92e260071..2aae7ca400 100644 --- a/compute_tools/src/http/api.rs +++ b/compute_tools/src/http/api.rs @@ -100,8 +100,8 @@ async fn routes(req: Request, compute: &Arc) -> Response { - info!("serving /extensions/install POST request"); + (&Method::POST, "/extensions") => { + info!("serving /extensions POST request"); let status = compute.get_status(); if status != ComputeStatus::Running { let msg = format!( diff --git a/compute_tools/src/http/openapi_spec.yaml b/compute_tools/src/http/openapi_spec.yaml index 90401ef2e5..47952deda9 100644 --- a/compute_tools/src/http/openapi_spec.yaml +++ b/compute_tools/src/http/openapi_spec.yaml @@ -144,7 +144,7 @@ paths: description: Error text or 'true' if check passed. example: "true" - /extensions/install: + /extensions: post: tags: - Extensions