+ client: handle allowlist refresh

This commit is contained in:
Ildar Kamalov
2020-02-28 14:31:45 +03:00
parent 263a7ca6be
commit 90b25300df
4 changed files with 19 additions and 8 deletions

View File

@@ -89,9 +89,14 @@ class Api {
return this.makeRequest(path, method);
}
refreshFilters() {
refreshFilters(config) {
const { path, method } = this.FILTERING_REFRESH;
return this.makeRequest(path, method);
const parameters = {
data: config,
headers: { 'Content-Type': 'application/json' },
};
return this.makeRequest(path, method, parameters);
}
addFilter(config) {