github.com/hernad/nomad@v1.6.112/ui/mirage/serializers/agent.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import ApplicationSerializer from './application';
     7  
     8  export default ApplicationSerializer.extend({
     9    keyForAttribute(str) {
    10      if (str === 'config' || str === 'member') {
    11        return str;
    12      }
    13      return ApplicationSerializer.prototype.keyForAttribute.apply(this, arguments);
    14    },
    15  });