API lib cleanup, 404 hosts WIP

This commit is contained in:
Jamie Curnow committed 2025-10-02 08:12:36 +10:00
1 parent 058f49ceea
commit 54e036276a
76 files changed
+921 -544

No files matched your search

+6 -9
View File
@@ -1,13 +1,10 @@
import * as api from "./base";
import type { DeadHost } from "./models";
export async function createDeadHost(item: DeadHost, abortController?: AbortController): Promise<DeadHost> {
return await api.post(
{
url: "/nginx/dead-hosts",
// todo: only use whitelist of fields for this data
data: item,
},
abortController,
);
export async function createDeadHost(item: DeadHost): Promise<DeadHost> {
return await api.post({
url: "/nginx/dead-hosts",
// todo: only use whitelist of fields for this data
data: item,
});
}