Added routes to subsections in visits

This commit is contained in:
Alejandro Celaya
2020-12-20 19:28:09 +01:00
parent 214b952e84
commit 83221c1066
8 changed files with 80 additions and 73 deletions

View File

@@ -0,0 +1,5 @@
import qs from 'qs';
export const parseQuery = <T>(search: string) => qs.parse(search, { ignoreQueryPrefix: true }) as unknown as T;
export const stringifyQuery = (query: any): string => qs.stringify(query, { arrayFormat: 'brackets' });