mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-01 13:41:07 +03:00
+ client: use search params for querylog request
This commit is contained in:
parent
92b6adbdc1
commit
7b29c56791
7 changed files with 32 additions and 20 deletions
client/src/helpers
|
@ -1,3 +1,4 @@
|
|||
import 'url-polyfill';
|
||||
import dateParse from 'date-fns/parse';
|
||||
import dateFormat from 'date-fns/format';
|
||||
import subHours from 'date-fns/sub_hours';
|
||||
|
@ -321,3 +322,9 @@ export const normalizeWhois = (whois) => {
|
|||
};
|
||||
|
||||
export const isValidQuestionType = type => type && DNS_RECORD_TYPES.includes(type.toUpperCase());
|
||||
|
||||
export const getPathWithQueryParams = (path, params) => {
|
||||
const searchParams = new URLSearchParams(params);
|
||||
|
||||
return `${path}?${searchParams.toString()}`;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue