mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 01:32:23 +08:00
15 lines
339 B
JavaScript
15 lines
339 B
JavaScript
import EmberObject from "@ember/object";
|
|
import { ajax } from "discourse/lib/ajax";
|
|
|
|
const EmailSettings = EmberObject.extend({});
|
|
|
|
EmailSettings.reopenClass({
|
|
find: function () {
|
|
return ajax("/admin/email.json").then(function (settings) {
|
|
return EmailSettings.create(settings);
|
|
});
|
|
},
|
|
});
|
|
|
|
export default EmailSettings;
|