mirror of https://github.com/hashicorp/consul
17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
import RepositoryService from 'consul-ui/services/repository';
|
|
|
|
const modelName = 'intention-permission-http-header';
|
|
export default class IntentionPermissionHttpHeaderService extends RepositoryService {
|
|
getModelName() {
|
|
return modelName;
|
|
}
|
|
|
|
create(obj = {}) {
|
|
return this.store.createFragment(this.getModelName(), obj);
|
|
}
|
|
|
|
persist(item) {
|
|
return item.execute();
|
|
}
|
|
}
|