Add scoped DICOM series previews with 3D volume and MPR views
This commit is contained in:
1 parent
7371c29111
commit
6d8faa7d03
23 files changed
+1479
-20
No files matched your search
@@ -1,12 +1,17 @@
|
||||
import { fetchURL, removePrefix, createURL } from "./utils";
|
||||
import { baseURL } from "@/utils/constants";
|
||||
|
||||
export async function fetch(url: string, password: string = "") {
|
||||
export async function fetch(
|
||||
url: string,
|
||||
password: string = "",
|
||||
options: { signal?: AbortSignal; token?: string } = {}
|
||||
) {
|
||||
url = removePrefix(url);
|
||||
|
||||
const res = await fetchURL(
|
||||
`/api/public/share${url}`,
|
||||
`/api/public/share${url}${options.token ? `?token=${encodeURIComponent(options.token)}` : ""}`,
|
||||
{
|
||||
signal: options.signal,
|
||||
headers: { "X-SHARE-PASSWORD": encodeURIComponent(password) },
|
||||
},
|
||||
false
|
||||
|
||||
Reference in new issue
Block a user