mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-23 23:10:34 +00:00
API lib cleanup, 404 hosts WIP
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user