Files
threshold-ui/addons/api/mirage/serializers/host.js
T

19 lines
403 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
2020-08-19 18:38:18 -04:00
import ApplicationSerializer from './application';
export default ApplicationSerializer.extend({
2021-03-04 15:47:38 -05:00
modelName: 'host',
_hashForModel(model) {
const json = ApplicationSerializer.prototype._hashForModel.apply(
this,
arguments,
);
json.host_catalog_id = model.hostCatalogId;
return json;
},
2020-08-19 18:38:18 -04:00
});