Files
nginx-proxy-manager/frontend/src/api/backend/getDeadHost.ts
2025-10-02 08:12:36 +10:00

14 lines
357 B
TypeScript

import * as api from "./base";
import type { HostExpansion } from "./expansions";
import type { DeadHost } from "./models";
export async function getDeadHost(id: number, expand?: HostExpansion[], params = {}): Promise<DeadHost> {
return await api.get({
url: `/nginx/dead-hosts/${id}`,
params: {
expand: expand?.join(","),
...params,
},
});
}