API lib cleanup, 404 hosts WIP

This commit is contained in:
Jamie Curnow
2025-10-02 08:12:36 +10:00
parent 058f49ceea
commit 54e036276a
76 changed files with 921 additions and 544 deletions
+4 -7
View File
@@ -1,10 +1,7 @@
import * as api from "./base";
export async function deleteDeadHost(id: number, abortController?: AbortController): Promise<boolean> {
return await api.del(
{
url: `/nginx/dead-hosts/${id}`,
},
abortController,
);
export async function deleteDeadHost(id: number): Promise<boolean> {
return await api.del({
url: `/nginx/dead-hosts/${id}`,
});
}