Show guidelines on UI on how to setup network hook

This commit is contained in:
2024-01-11 19:02:47 +01:00
parent d6c8964380
commit 4d0b4929c5
9 changed files with 206 additions and 0 deletions

View File

@ -148,6 +148,12 @@ interface SysLoadAverage {
fifteen: number;
}
export interface NetworkHookStatus {
installed: boolean;
content: string;
path: string;
}
export class ServerApi {
/**
* Get server configuration
@ -181,6 +187,18 @@ export class ServerApi {
).data;
}
/**
* Get network hook status
*/
static async NetworkHookStatus(): Promise<NetworkHookStatus> {
return (
await APIClient.exec({
method: "GET",
uri: "/server/network_hook_status",
})
).data;
}
/**
* Get host supported vCPUs configurations
*/