mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-13 22:05:15 +00:00
14 lines
357 B
TypeScript
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,
|
|
},
|
|
});
|
|
}
|