Created update button for workspace settings -- these include TIMEZONE and WORKSPACE NAME

This commit is contained in:
NPS Agent
2026-05-12 09:42:03 +09:30
parent 62d431818a
commit 60a1cf1b67
8 changed files with 112 additions and 14 deletions
+13
View File
@@ -66,6 +66,19 @@ class ApiService {
return this.request('/users');
}
async getWorkspace() {
return this.request('/workspace');
}
async updateWorkspace(updates) {
const data = await this.request('/workspace', {
method: 'PATCH',
body: JSON.stringify(updates),
});
this.notify();
return data;
}
async createUser(userData) {
const data = await this.request('/users', {
method: 'POST',