open-nomad/ui/app/adapters/agent.js
2023-04-10 15:36:59 +00:00

18 lines
390 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import ApplicationAdapter from './application';
import classic from 'ember-classic-decorator';
@classic
export default class AgentAdapter extends ApplicationAdapter {
pathForType = () => 'agent/members';
urlForFindRecord() {
const [, ...args] = arguments;
return this.urlForFindAll(...args);
}
}