updated the API to support the new calendar service and added a smoke test for the API.
This commit is contained in:
+1
-12
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user