Fix WebUI startup blocking on slow gateway routes
This commit is contained in:
1 parent
3a221d74cf
commit
af0e3441d7
12 files changed
+280
-17
No files matched your search
@@ -294,6 +294,18 @@ export async function fetchCliApps(
|
||||
);
|
||||
}
|
||||
|
||||
export async function fetchInstalledCliApps(
|
||||
token: string,
|
||||
base: string = "",
|
||||
): Promise<CliAppsPayload> {
|
||||
return request<CliAppsPayload>(
|
||||
`${base}/api/settings/cli-apps?installed_only=1`,
|
||||
token,
|
||||
undefined,
|
||||
API_READ_TIMEOUT_MS,
|
||||
);
|
||||
}
|
||||
|
||||
export async function runCliAppAction(
|
||||
token: string,
|
||||
action: "install" | "update" | "uninstall" | "test",
|
||||
|
||||
Reference in new issue
Block a user