discourse/app/assets/javascripts/admin/models/email-settings.js.es6
2019-11-08 14:13:35 -05:00

15 lines
336 B
JavaScript

import { ajax } from "discourse/lib/ajax";
import EmberObject from "@ember/object";
const EmailSettings = EmberObject.extend({});
EmailSettings.reopenClass({
find: function() {
return ajax("/admin/email.json").then(function(settings) {
return EmailSettings.create(settings);
});
}
});
export default EmailSettings;