toggleDeadHost.ts 219 B

1234567
  1. import * as api from "./base";
  2. export async function toggleDeadHost(id: number, enabled: boolean): Promise<boolean> {
  3. return await api.post({
  4. url: `/nginx/dead-hosts/${id}/${enabled ? "enable" : "disable"}`,
  5. });
  6. }