added cookie to config + fixed config set endpoint

This commit is contained in:
dswbx committed 2024-11-25 16:57:12 +01:00
1 parent 824ff40133
commit 16a6a3315d
14 files changed
+114 -47

No files matched your search

+4 -1
View File
@@ -27,7 +27,10 @@ export class SystemApi extends ModuleApi<any> {
value: ModuleConfigs[Module],
force?: boolean
) {
return await this.post<any>(["config", "set", module, `?force=${force ? 1 : 0}`], value);
return await this.post<any>(
["config", "set", module].join("/") + `?force=${force ? 1 : 0}`,
value
);
}
async addConfig<Module extends ModuleKey>(module: Module, path: string, value: any) {