The fw adapter defines a base adapter for the ember-data store. By default, this is included in an app as the application adapter; however, if you should need to override/extend any behavior in your particular app, you may extend this in another adapter.

For example:

import FwAdapter from '@bennerinformatics/ember-fw/adapters/fw';

export default FwAdapter.extend({
    // ... your code here
});

Note: If you just want to extend/override the adapter for one particular model, you can do so by providing an adapter for that particular model without overriding the base one.

For example, if you had a 'user' model:

import BaseAdapter from './application';

export default BaseAdapter.extend({
    // ... your code here
});
Show:

Methods

Properties

buildURL ()

Ensures trailing slashes for all urls (extends Ember-Data's method)

Returns:

String

config

ConfigService

The config property is an injected service that provides various properties such as the api root that are used to handle requests.

host

String

Computed alias of config.apiRoot