mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-16 02:18:28 -07:00
Send json for addFilter request
This commit is contained in:
parent
4b8ee9ce83
commit
1e18235c1d
@ -169,10 +169,11 @@ export default class Api {
|
||||
|
||||
addFilter(url, name) {
|
||||
const { path, method } = this.FILTERING_ADD_FILTER;
|
||||
const requestBody = `url=${url}&name=${name}`;
|
||||
const config = {
|
||||
data: requestBody,
|
||||
header: { 'Content-Type': 'text/plain' },
|
||||
data: {
|
||||
name,
|
||||
url,
|
||||
},
|
||||
};
|
||||
return this.makeRequest(path, method, config);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user