mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
parent
4d1eb952b2
commit
7206f721f4
8 changed files with 783 additions and 697 deletions
|
@ -57,5 +57,20 @@ export default Service.extend({
|
|||
method: 'POST',
|
||||
data: JSON.stringify(config)
|
||||
});
|
||||
},
|
||||
|
||||
getGlobalSetting(key) {
|
||||
return this.get('ajax').request(`organization/setting?key=${key}`, {
|
||||
method: 'GET'
|
||||
}).then((response) => {
|
||||
return JSON.parse(response);
|
||||
});
|
||||
},
|
||||
|
||||
saveGlobalSetting(key, config) {
|
||||
return this.get('ajax').request(`organization/setting?key=${key}`, {
|
||||
method: 'POST',
|
||||
data: JSON.stringify(config)
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue