mirror of
https://github.com/status-im/consul.git
synced 2025-02-22 18:38:19 +00:00
Merge pull request #1514 from oswell/master
Add the token to /v1/internal/ui/nodes. (issue #1071)
This commit is contained in:
commit
e1db0eb58b
@ -88,12 +88,14 @@ App.IndexRoute = App.BaseRoute.extend({
|
||||
// functioning, as well as the per-dc requests.
|
||||
App.DcRoute = App.BaseRoute.extend({
|
||||
model: function(params) {
|
||||
var token = App.get('settings.token');
|
||||
|
||||
// Return a promise hash to retreieve the
|
||||
// dcs and nodes used in the header
|
||||
return Ember.RSVP.hash({
|
||||
dc: params.dc,
|
||||
dcs: Ember.$.getJSON('/v1/catalog/datacenters'),
|
||||
nodes: Ember.$.getJSON(formatUrl('/v1/internal/ui/nodes', params.dc)).then(function(data) {
|
||||
nodes: Ember.$.getJSON(formatUrl('/v1/internal/ui/nodes', params.dc, token)).then(function(data) {
|
||||
var objs = [];
|
||||
|
||||
// Merge the nodes into a list and create objects out of them
|
||||
|
Loading…
x
Reference in New Issue
Block a user