Commit f326bfc4 authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

update appAPI.js

parent 9475af87
...@@ -1032,5 +1032,22 @@ this.appAPI = { ...@@ -1032,5 +1032,22 @@ this.appAPI = {
} }
}); });
} }
},
documentFilterDelete: async function(filterID){
return new Promise(async resolve => {
try {
const {login, password} = Cons.creds;
const url = `../Synergy/rest/api/docflow/filters/delete?filterID=${filterID}`;
const headers = new Headers();
headers.append("Authorization", "Basic " + btoa(unescape(encodeURIComponent(`${login}:${password}`))));
headers.append("Content-Type", "application/json; charset=UTF-8");
const response = await fetch(url, {method: 'POST', headers});
resolve(response.json());
} catch (err) {
console.log(`ERROR [ documentFilterDelete ]: ${err.message}`);
resolve(null);
}
});
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment