mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
added format command and added trailing commas to reduce conflicts
This commit is contained in:
@@ -12,7 +12,7 @@ export type ApiSchemaResponse = {
|
||||
export class SystemApi extends ModuleApi<any> {
|
||||
protected override getDefaultOptions(): Partial<any> {
|
||||
return {
|
||||
basepath: "/api/system"
|
||||
basepath: "/api/system",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,18 +23,18 @@ export class SystemApi extends ModuleApi<any> {
|
||||
readSchema(options?: { config?: boolean; secrets?: boolean }) {
|
||||
return this.get<ApiSchemaResponse>("schema", {
|
||||
config: options?.config ? 1 : 0,
|
||||
secrets: options?.secrets ? 1 : 0
|
||||
secrets: options?.secrets ? 1 : 0,
|
||||
});
|
||||
}
|
||||
|
||||
setConfig<Module extends ModuleKey>(
|
||||
module: Module,
|
||||
value: ModuleConfigs[Module],
|
||||
force?: boolean
|
||||
force?: boolean,
|
||||
) {
|
||||
return this.post<ConfigUpdateResponse>(
|
||||
["config", "set", module].join("/") + `?force=${force ? 1 : 0}`,
|
||||
value
|
||||
value,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user