mirror of https://github.com/status-im/consul.git
22 lines
470 B
JavaScript
22 lines
470 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
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();
|
|
}
|
|
}
|