mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 18:32:46 +08:00
api was not showing api key cause model in ember is just partial advice that is sometimes followed up
This commit is contained in:
parent
b25a5a20bb
commit
855ba562ac
|
@ -1,17 +1,20 @@
|
|||
/**
|
||||
Handles routes related to api
|
||||
|
||||
@class AdminApiRoute
|
||||
@class AdminApiRoute
|
||||
@extends Discourse.Route
|
||||
@namespace Discourse
|
||||
@module Discourse
|
||||
**/
|
||||
**/
|
||||
Discourse.AdminApiRoute = Discourse.Route.extend({
|
||||
renderTemplate: function() {
|
||||
renderTemplate: function() {
|
||||
this.render({into: 'admin/templates/admin'});
|
||||
},
|
||||
|
||||
model: function(params) {
|
||||
return Discourse.AdminApi.find();
|
||||
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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user