You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-ui/app/services/repository/service.js

21 lines
549 B

import RepositoryService from 'consul-ui/services/repository';
const modelName = 'service';
export default class _RepositoryService extends RepositoryService {
getModelName() {
return modelName;
}
findGatewayBySlug(slug, dc, nspace, configuration = {}) {
const query = {
dc: dc,
ns: nspace,
gateway: slug,
};
if (typeof configuration.cursor !== 'undefined') {
query.index = configuration.cursor;
query.uri = configuration.uri;
}
return this.store.query(this.getModelName(), query);
}
}