System config parameter view

This commit is contained in:
notmd
2023-02-02 20:23:00 +07:00
parent caa6331a72
commit 28ee771a97
12 changed files with 223 additions and 178 deletions
+9
View File
@@ -29,6 +29,15 @@ export class OasstApiClient {
};
}
}
fetch_full_settings() {
return this.get<Record<string, any>>("/api/v1/admin/backend_settings/full");
}
fetch_public_settings() {
return this.get<Record<string, any>>("/api/v1/admin/backend_settings/public");
}
// TODO return a strongly typed Task?
// This method is used to store a task in RegisteredTask.task.
// This is a raw Json type, so we can't use it to strongly type the task.