mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-22 14:13:21 +01:00
14 lines
342 B
TypeScript
14 lines
342 B
TypeScript
import * as api from "./base";
|
|
import type { HostExpansion } from "./expansions";
|
|
import type { DeadHost } from "./models";
|
|
|
|
export async function getDeadHosts(expand?: HostExpansion[], params = {}): Promise<DeadHost[]> {
|
|
return await api.get({
|
|
url: "/nginx/dead-hosts",
|
|
params: {
|
|
expand: expand?.join(","),
|
|
...params,
|
|
},
|
|
});
|
|
}
|