mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-29 18:46:23 -05:00
21 lines
447 B
JavaScript
21 lines
447 B
JavaScript
|
/**
|
||
|
Handles email routes
|
||
|
|
||
|
@class AdminEmailRoute
|
||
|
@extends Discourse.Route
|
||
|
@namespace Discourse
|
||
|
@module Discourse
|
||
|
**/
|
||
|
Discourse.AdminEmailIndexRoute = Discourse.Route.extend({
|
||
|
|
||
|
setupController: function(controller) {
|
||
|
Discourse.EmailSettings.find().then(function (model) {
|
||
|
controller.set('model', model);
|
||
|
})
|
||
|
},
|
||
|
|
||
|
renderTemplate: function() {
|
||
|
this.render('admin/templates/email_index', {into: 'adminEmail'});
|
||
|
}
|
||
|
});
|