How to use the ember-get-config.JamDB function in ember-get-config

To help you get started, we’ve selected a few ember-get-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CenterForOpenScience / ember-osf-preprints / app / adapters / application.js View on Github external
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'
    }
});
github CenterForOpenScience / ember-osf-preprints / app / adapters / application.js View on Github external
        namespaceId: () => config.JamDB.namespace,
        namespaceCreate: 'v1'