Skip to content

Instantly share code, notes, and snippets.

@rounders
Created June 18, 2015 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rounders/45aa77736149c53eef8d to your computer and use it in GitHub Desktop.
Save rounders/45aa77736149c53eef8d to your computer and use it in GitHub Desktop.
ApplicationAdapter
`import DS from 'ember-data'`
ApplicationAdapter = DS.ActiveModelAdapter.extend
namespace: 'api/v1'
headers:
"X-CSRF-Token": $('meta[name="csrf-token"]').attr('content')
`export default ApplicationAdapter`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment