feat: set the authorization header for DICOMWeb requests if provided in query string (#1646)

This commit is contained in:
Danny Brown authored and GitHub committed 2020-04-17 10:14:13 -04:00
1 parent d3eefb50f5
commit 450c80b9d5
5 files changed
+257 -75

No files matched your search

@@ -0,0 +1,11 @@
import { useLocation } from 'react-router-dom';
/**
* hook that builds on useLocation to parse
* the query string for you.
*
* @name useQuery
*/
export default function() {
return new URLSearchParams(useLocation().search);
}