Specify the request type for token self

Without this, the data (query params) get json stringified
This commit is contained in:
Michael Lange
2018-08-09 18:21:07 -07:00
parent 362aff0fab
commit c55df8ff4b

View File

@@ -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],