Created
January 9, 2015 16:34
-
-
Save krzkrzkrz/a4b702471fc10b0d76ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DS from 'ember-data'; | |
export default DS.ActiveModelAdapter.extend({ | |
namespace: 'api/v1', | |
host: window.location.origin, | |
headers: function() { | |
var headers = {}; | |
headers.Authorization = 'Token access_token=' + this.currentSessionService.token; | |
headers.X-CSRF-Token = "T/1t661w9KMhKr3RT6QJwzKLfswnGMN1ojHp9DmPsZY=bbb"; | |
return headers; | |
}.property("currentSessionService.accessToken") | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment