snappymail/dev/Remote/Admin/Fetch.js

17 lines
359 B
JavaScript
Raw Normal View History

import { AbstractFetchRemote } from 'Remote/AbstractFetch';
class RemoteAdminFetch extends AbstractFetchRemote {
2022-02-28 17:38:47 +08:00
/**
* @param {string} key
* @param {?scalar} value
* @param {?Function} fCallback
*/
saveSetting(key, value, fCallback) {
2022-03-01 17:18:12 +08:00
this.request('AdminSettingsUpdate', fCallback, {[key]: value});
2022-02-28 17:38:47 +08:00
}
2016-06-30 08:02:45 +08:00
}
export default new RemoteAdminFetch();