discourse/app/assets/javascripts/admin/routes/admin_api_route.js

21 lines
501 B
JavaScript
Raw Normal View History

2013-03-25 21:04:28 -04:00
/**
Handles routes related to api
@class AdminApiRoute
2013-03-25 21:04:28 -04:00
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
2013-03-25 21:04:28 -04:00
Discourse.AdminApiRoute = Discourse.Route.extend({
renderTemplate: function() {
2013-03-25 21:04:28 -04:00
this.render({into: 'admin/templates/admin'});
},
setupController: function(controller, model) {
// in case you are wondering, model never gets called for link_to
Discourse.AdminApi.find().then(function(result){
controller.set('content', result);
});
2013-03-25 21:04:28 -04:00
}
});