mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
20 lines
501 B
JavaScript
20 lines
501 B
JavaScript
/**
|
|
Handles routes related to api
|
|
|
|
@class AdminApiRoute
|
|
@extends Discourse.Route
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.AdminApiRoute = Discourse.Route.extend({
|
|
renderTemplate: function() {
|
|
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);
|
|
});
|
|
}
|
|
});
|