1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/adapters/theme.js

15 lines
346 B
JavaScript
Raw Normal View History

import ApplicationAdapter from './application';
export default ApplicationAdapter.extend({
activate(model) {
let url = `${this.buildURL('theme', model.get('id'))}activate/`;
return this.ajax(url, 'PUT', {data: {}}).then((data) => {
this.store.pushPayload(data);
return model;
});
}
});