mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
13 lines
298 B
JavaScript
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;
|