updated the API to support the new calendar service and added a smoke test for the API.

This commit is contained in:
2026-05-20 16:53:26 -07:00
parent 745d0a2909
commit c423f1191d
4 changed files with 92 additions and 23 deletions
+1 -12
View File
@@ -192,11 +192,6 @@
url.searchParams.set(key, normalizedValue);
});
const apiKey = getApiKey();
if (apiKey && !url.searchParams.has("api_key")) {
url.searchParams.set("api_key", apiKey);
}
return url.toString();
}
@@ -211,13 +206,7 @@
return "";
}
const url = new URL(`/api/v1/assets/${encodePathSegments(normalizedAssetPath)}`, `${apiBaseUrl}/`);
const apiKey = getApiKey();
if (apiKey) {
url.searchParams.set("api_key", apiKey);
}
return url.toString();
return new URL(`/api/v1/assets/${encodePathSegments(normalizedAssetPath)}`, `${apiBaseUrl}/`).toString();
}
function resetCaches() {