mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-20 14:51:33 +00:00
19 lines
No EOL
442 B
JavaScript
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}`));
|
|
},
|
|
} |