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

18 lines
355 B
JavaScript
Raw Normal View History

2013-03-25 21:04:28 -04:00
/**
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'});
},
model: function(params) {
return Discourse.AdminApi.find();
}
});