mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Specify the request type for token self
Without this, the data (query params) get json stringified
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user