mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 03:03:48 +08:00
15 lines
336 B
JavaScript
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;
|