@edools/epm
Version:
Edools apps management tool
19 lines (15 loc) • 363 B
JavaScript
import createRestClient from './rest';
class ThemeClient {
constructor (config) {
this.client = createRestClient(config);
}
update (theme) {
return this.client({
method: 'PUT',
path: `/themes/${theme.id}`,
entity: { theme: theme },
headers: { 'Content-Type': 'application/json' }
});
}
}
export default ThemeClient;