Files
nginx-proxy-manager/frontend/src/api/backend/getDeadHosts.ts
Jamie Curnow ebd9148813 React
2025-09-03 14:02:14 +10:00

15 lines
353 B
TypeScript

import * as api from "./base";
import type { DeadHost } from "./models";
export type DeadHostExpansion = "owner" | "certificate";
export async function getDeadHosts(expand?: DeadHostExpansion[], params = {}): Promise<DeadHost[]> {
return await api.get({
url: "/nginx/dead-hosts",
params: {
expand: expand?.join(","),
...params,
},
});
}