From c55df8ff4b6168879a08e589016355d376df9c95 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Thu, 9 Aug 2018 18:21:07 -0700 Subject: [PATCH] Specify the request type for token self Without this, the data (query params) get json stringified --- ui/app/adapters/token.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/adapters/token.js b/ui/app/adapters/token.js index 32315037a..8b8a8b250 100644 --- a/ui/app/adapters/token.js +++ b/ui/app/adapters/token.js @@ -7,7 +7,7 @@ export default ApplicationAdapter.extend({ namespace: namespace + '/acl', findSelf() { - return this.ajax(`${this.buildURL()}/token/self`).then(token => { + return this.ajax(`${this.buildURL()}/token/self`, 'GET').then(token => { const store = this.get('store'); store.pushPayload('token', { tokens: [token],