consul/ui-v2/app/adapters/discovery-chain.js

15 lines
328 B
JavaScript

import Adapter from './application';
export default Adapter.extend({
requestForQueryRecord: function(request, { dc, index, id }) {
if (typeof id === 'undefined') {
throw new Error('You must specify an id');
}
return request`
GET /v1/discovery-chain/${id}?${{ dc }}
${{ index }}
`;
},
});