Files
threshold-ui/addons/api/mirage/serializers/host.js
T
2024-05-31 11:29:24 -07:00

20 lines
404 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import ApplicationSerializer from './application';
export default ApplicationSerializer.extend({
modelName: 'host',
_hashForModel(model) {
const json = ApplicationSerializer.prototype._hashForModel.apply(
this,
arguments,
);
json.host_catalog_id = model.hostCatalogId;
return json;
},
});