Table improvements, add modals

This commit is contained in:
Jamie Curnow
2023-01-16 14:02:36 +10:00
parent 306ac20457
commit b877bea86c
17 changed files with 1149 additions and 121 deletions

View File

@@ -0,0 +1,12 @@
import * as api from "./base";
export async function getUpstreamNginxConfig(
id: number,
params = {},
): Promise<string> {
const { result } = await api.get({
url: `/upstreams/${id}/nginx-config`,
params,
});
return result;
}

View File

@@ -13,6 +13,7 @@ export * from "./getHosts";
export * from "./getNginxTemplates";
export * from "./getSettings";
export * from "./getToken";
export * from "./getUpstreamNginxConfig";
export * from "./getUpstreams";
export * from "./getUser";
export * from "./getUsers";