Ghost/ghost/admin/app/adapters/email.js

15 lines
405 B
JavaScript
Raw Normal View History

import ApplicationAdapter from './application';
import classic from 'ember-classic-decorator';
@classic
export default class Email extends ApplicationAdapter {
retry(model) {
let url = `${this.buildURL('email', model.get('id'))}retry/`;
return this.ajax(url, 'PUT', {data: {}}).then((data) => {
this.store.pushPayload(data);
return model;
});
}
}