Nertivia-Client/src/services/ThemeService.js
supertiger1234 a3d5c1ba9d themes
2019-11-29 10:09:55 +00:00

19 lines
No EOL
442 B
JavaScript

import {instance, wrapper} from './Api';
export default {
getTheme (id) {
return wrapper(instance().get(`themes/${id}`));
},
getThemes () {
return wrapper(instance().get('themes/'));
},
save (data) {
return wrapper(instance().post(`themes/`, data));
},
update (data, id) {
return wrapper(instance().patch(`themes/${id}`, data));
},
delete (id) {
return wrapper(instance().delete(`themes/${id}`));
},
}