mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
14 lines
327 B
JavaScript
14 lines
327 B
JavaScript
|
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) => {
|
||
|
return this.store.pushPayload(data);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
});
|