From 43400dfdeaa53722db17cbd8363317a0d7ae157f Mon Sep 17 00:00:00 2001 From: Jere Vaara Date: Thu, 10 Oct 2024 13:34:56 +0300 Subject: [PATCH] change path --- 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 947b91a311..7542f5ef36 100644 --- a/compute_tools/src/http/api.rs +++ b/compute_tools/src/http/api.rs @@ -99,8 +99,8 @@ async fn routes(req: Request, compute: &Arc) -> Response { - info!("serving /extensions POST request"); + (&Method::POST, "/extensions/install") => { + info!("serving /extensions/install 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 9af406d38f..9bf5aeebf1 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: + /extensions/install: post: tags: - Extensions