namespace{String}
Endpoint paths can be prefixed with a namespace
by setting the namespace property on the adapter:
app/adapters/application.js
import DS from 'ember-data'; export default DS.RESTAdapter.extend({ namespace: 'api/1' });
Requests for the Post
model would now target /api/1/post/
.
Please login to continue.