First commit

This commit is contained in:
Fuhrmann 2025-02-26 09:46:13 +01:00
commit 7fe5d03a09
33 changed files with 6524 additions and 0 deletions

View file

@ -0,0 +1,15 @@
export async function getMetadata(serviceUrl: string) {
const response = await fetch(serviceUrl, {
method: "GET",
mode: "cors",
headers: {
"Content-Type": "application/json",
},
});
if (response.ok) {
return response.json();
} else {
throw new Error("HTTP error status: " + response.status);
}
}