discourse/app/assets/javascripts/admin/addon/models/email-settings.js

11 lines
283 B
JavaScript

import EmberObject from "@ember/object";
import { ajax } from "discourse/lib/ajax";
export default class EmailSettings extends EmberObject {
static find() {
return ajax("/admin/email.json").then(function (settings) {
return EmailSettings.create(settings);
});
}
}