1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

Provide UI for managing integration config

Closes #110
This commit is contained in:
HarveyKandola 2018-08-08 14:57:56 +01:00
parent 4d1eb952b2
commit 7206f721f4
8 changed files with 783 additions and 697 deletions

View file

@ -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)
});
}
});