app/adapters/feed.js
import ApplicationAdapter from 'client/adapters/application';
import { get } from '@ember/object';
export default ApplicationAdapter.extend({
urlForQuery(query) {
const { type, id } = query;
delete query.type; // eslint-disable-line no-param-reassign
delete query.id; // eslint-disable-line no-param-reassign
const host = get(this, 'host') || '';
const url = `${host}/${get(this, 'namespace')}/feeds/${type}`;
return `${url}/${id}`;
}
});