Change path as per Alexey's feedback

This commit is contained in:
Jere Vaara
2024-10-14 18:54:25 +03:00
parent 36bffe5ff3
commit 603ca192a7
2 changed files with 3 additions and 3 deletions

View File

@@ -100,8 +100,8 @@ async fn routes(req: Request<Body>, compute: &Arc<ComputeNode>) -> Response<Body
}
}
(&Method::POST, "/extensions/install") => {
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!(

View File

@@ -144,7 +144,7 @@ paths:
description: Error text or 'true' if check passed.
example: "true"
/extensions/install:
/extensions:
post:
tags:
- Extensions