Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust/agama-server/src/server/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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."),
Expand Down
5 changes: 4 additions & 1 deletion web/src/model/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading