open-vault/ui/app/serializers/replication-attributes.js

14 lines
295 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import RESTSerializer from '@ember-data/serializer/rest';
import { decamelize } from '@ember/string';
export default RESTSerializer.extend({
keyForAttribute: function (attr) {
return decamelize(attr);
},
});