We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bc6ca6 commit d171bc8Copy full SHA for d171bc8
src/components/APIRequest.astro
@@ -41,7 +41,10 @@ if (!operation) {
41
);
42
}
43
44
-const url = new URL(path, "https://api.cloudflare.com/client/v4");
+const url = new URL(
45
+ path.startsWith("/") ? path.slice(1) : path,
46
+ "https://api.cloudflare.com/client/v4/",
47
+);
48
const headers: Record<string, string> = {};
49
50
const providedParameters = Object.keys(parameters ?? {});
0 commit comments