Add scoped DICOM series previews with 3D volume and MPR views

This commit is contained in:
SantaSpeen committed 2026-10-22 21:06:46 +03:00
1 parent 7371c29111
commit 6d8faa7d03
23 files changed
+1479 -20

No files matched your search

+7 -2
View File
@@ -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