Created
August 8, 2014 15:52
-
-
Save tbergeron/99290cb401d9d2f4e702 to your computer and use it in GitHub Desktop.
This file contains 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
App.EntryAdapter = DS.RESTAdapter.extend({ | |
namespace: 'api/v1', | |
host: 'http://api.host.org', | |
headers: { | |
withCredentials: true, | |
Authorization: 'Basic ZGVtb0B1c2VyLmNvbTpwYXNzd29yZA==' | |
} | |
}); | |
App.Entry = DS.Model.extend({ | |
user_id: DS.attr('number'), | |
shared: DS.attr('boolean', {defaultValue: false}), | |
body: DS.attr('string'), | |
updatedAt: DS.attr('date'), | |
createdAt: DS.attr('date') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment