Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import JSONAPIAdapter from 'ember-data/adapters/json-api';
import JamAdapter from '../mixins/jam-adapter';
import UrlTemplates from 'ember-data-url-templates';
import config from 'ember-get-config';
export default JSONAPIAdapter.extend(JamAdapter, UrlTemplates, {
host: config.JamDB.url,
namespace: 'v1/id',
urlSegments: { // Make available to all adapters, not just documents. This appears to be extended rather than overwritten by children.
namespaceId: () => config.JamDB.namespace,
namespaceCreate: 'v1'
}
});
namespaceId: () => config.JamDB.namespace,
namespaceCreate: 'v1'