2013-03-26 09:04:28 +08:00
|
|
|
/**
|
|
|
|
Handles routes related to api
|
|
|
|
|
2013-04-30 11:49:01 +08:00
|
|
|
@class AdminApiRoute
|
2013-03-26 09:04:28 +08:00
|
|
|
@extends Discourse.Route
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
2013-04-30 11:49:01 +08:00
|
|
|
**/
|
2013-03-26 09:04:28 +08:00
|
|
|
Discourse.AdminApiRoute = Discourse.Route.extend({
|
2013-05-21 03:27:58 +08:00
|
|
|
|
|
|
|
model: function() {
|
|
|
|
return Discourse.AdminApi.find();
|
2013-03-26 09:04:28 +08:00
|
|
|
},
|
|
|
|
|
2013-05-21 03:27:58 +08:00
|
|
|
renderTemplate: function() {
|
|
|
|
this.render({into: 'admin/templates/admin'});
|
2013-03-26 09:04:28 +08:00
|
|
|
}
|
2013-05-21 03:27:58 +08:00
|
|
|
|
2013-03-26 09:04:28 +08:00
|
|
|
});
|