open-nomad/ui/app/serializers/service.js

16 lines
296 B
JavaScript

import ApplicationSerializer from './application';
export default class ServiceSerializer extends ApplicationSerializer {
attrs = {
connect: 'Connect',
};
normalize(typeHash, hash) {
if (!hash.Tags) {
hash.Tags = [];
}
return super.normalize(typeHash, hash);
}
}