diff --git a/rust/agama-server/src/server/web.rs b/rust/agama-server/src/server/web.rs index a9ff8c6d48..c27b67d8d5 100644 --- a/rust/agama-server/src/server/web.rs +++ b/rust/agama-server/src/server/web.rs @@ -390,7 +390,7 @@ async fn get_license( #[utoipa::path( post, - path = "/actions", + path = "/action", context_path = "/api/v2", responses( (status = 200, description = "Action successfully run."), diff --git a/web/src/model/manager.ts b/web/src/model/manager.ts index 0e27a2de96..944e863b87 100644 --- a/web/src/model/manager.ts +++ b/web/src/model/manager.ts @@ -39,12 +39,15 @@ const probe = () => post("/api/manager/probe_sync"); */ const reprobe = () => post("/api/manager/reprobe_sync"); +// we need wrapper here to pass it as plain string json +/* eslint-disable no-new-wrappers */ +const install_action: object = new String("install"); /** * Starts the installation process. * * The progress of the installation process can be tracked through installer signals. */ -const startInstallation = () => post("/api/manager/install"); +const startInstallation = () => post("/api/v2/action", install_action); /** * Clean-up when installation is done.