ep_rocketchat
Version:
Integrating rocketchat with Etherpad
18 lines (13 loc) • 333 B
JavaScript
;
class Settings {
constructor(client) {
this.client = client;
}
get(_id, callback) {
return this.client.request('GET', `settings/${_id}`, null, callback);
}
update(_id, value, callback) {
return this.client.request('GET', `settings/${_id}`, {value}, callback);
}
}
module.exports = Settings;