From 20176ffb790a175f5930ee1b8df07f3d7b981928 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 6 Nov 2025 01:29:31 +0000 Subject: [PATCH] Fix TOKEN variable reference in code example cgen-7da9f91dfe5841a79886f7b808022756 --- client/pages/docs/DocsApiReference.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/client/pages/docs/DocsApiReference.tsx b/client/pages/docs/DocsApiReference.tsx index 9b871add..9fb5f2f2 100644 --- a/client/pages/docs/DocsApiReference.tsx +++ b/client/pages/docs/DocsApiReference.tsx @@ -160,15 +160,7 @@ export default function DocsApiReference() { pagination headers for large result sets.

-              {`fetch("https://api.aethex.dev/v1/projects?page=1&limit=25", {
-  headers: {
-    Authorization: "Bearer ${TOKEN}",
-    "AeThex-Environment": "production",
-  },
-}).then(async (res) => {
-  if (!res.ok) throw new Error(await res.text());
-  console.log("Projects", await res.json());
-});`}
+              {'fetch("https://api.aethex.dev/v1/projects?page=1&limit=25", {\n  headers: {\n    Authorization: "Bearer ${TOKEN}",\n    "AeThex-Environment": "production",\n  },\n}).then(async (res) => {\n  if (!res.ok) throw new Error(await res.text());\n  console.log("Projects", await res.json());\n});'}
             

Responses include{" "}