Skip to content

Instantly share code, notes, and snippets.

@tbergeron
Created August 8, 2014 15:52
Show Gist options
  • Save tbergeron/99290cb401d9d2f4e702 to your computer and use it in GitHub Desktop.
Save tbergeron/99290cb401d9d2f4e702 to your computer and use it in GitHub Desktop.
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