mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-09-23 15:00:34 +00:00
13 lines
274 B
TypeScript
13 lines
274 B
TypeScript
import * as api from "./base";
|
|
import type { Setting } from "./models";
|
|
|
|
export async function updateSetting(item: Setting): Promise<Setting> {
|
|
// Remove readonly fields
|
|
const { id, ...data } = item;
|
|
|
|
return await api.put({
|
|
url: `/settings/${id}`,
|
|
data: data,
|
|
});
|
|
}
|