open-nomad/ui/mirage/serializers/agent.js
Jai Bhagat 2efa6cc7e4 add agent serializer
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.
2021-07-06 16:42:07 -04:00

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);
},
});