mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 08:11:15 -05:00
18 lines
355 B
JavaScript
18 lines
355 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'});
|
||
|
},
|
||
|
|
||
|
model: function(params) {
|
||
|
return Discourse.AdminApi.find();
|
||
|
}
|
||
|
});
|