API lib cleanup, 404 hosts WIP

This commit is contained in:
Jamie Curnow
2025-09-21 17:16:46 +10:00
parent 17f40dd8b2
commit 553178aa6b
78 changed files with 1375 additions and 647 deletions

View File

@@ -1,15 +1,12 @@
import * as api from "./base";
import type { Setting } from "./models";
export async function updateSetting(item: Setting, abortController?: AbortController): Promise<Setting> {
export async function updateSetting(item: Setting): Promise<Setting> {
// Remove readonly fields
const { id, ...data } = item;
return await api.put(
{
url: `/settings/${id}`,
data: data,
},
abortController,
);
return await api.put({
url: `/settings/${id}`,
data: data,
});
}