feat: set the authorization header for DICOMWeb requests if provided in query string (#1646)
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user