mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-11-05 09:55:14 +00:00
API lib cleanup, 404 hosts WIP
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
import * as api from "./base";
|
||||
|
||||
export async function toggleDeadHost(
|
||||
id: number,
|
||||
enabled: boolean,
|
||||
abortController?: AbortController,
|
||||
): Promise<boolean> {
|
||||
return await api.post(
|
||||
{
|
||||
url: `/nginx/dead-hosts/${id}/${enabled ? "enable" : "disable"}`,
|
||||
},
|
||||
abortController,
|
||||
);
|
||||
export async function toggleDeadHost(id: number, enabled: boolean): Promise<boolean> {
|
||||
return await api.post({
|
||||
url: `/nginx/dead-hosts/${id}/${enabled ? "enable" : "disable"}`,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user