discourse/app/assets/javascripts/admin/models/email-settings.js.es6
2018-06-15 17:03:24 +02:00

13 lines
298 B
JavaScript

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