mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 11:59:17 -05:00
12 lines
299 B
JavaScript
12 lines
299 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;
|