2efa6cc7e4
This commit adds a serializer for the Agent. When the factory was originally designed to have the Member properities directly on the Agent class which was not set-up properly technically, but since we didn't really make use of the Agent endpoint.
11 lines
287 B
JavaScript
11 lines
287 B
JavaScript
import ApplicationSerializer from './application';
|
|
|
|
export default ApplicationSerializer.extend({
|
|
keyForAttribute(str) {
|
|
if (str === 'config' || str === 'member') {
|
|
return str;
|
|
}
|
|
return ApplicationSerializer.prototype.keyForAttribute.apply(this, arguments);
|
|
},
|
|
});
|