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 c768f53 commit 39a5737Copy full SHA for 39a5737
src/lib/api/fetch.ts
@@ -10,7 +10,6 @@ const mcpNameHeader = 'X-mcp';
10
const jqHeader = 'X-jq';
11
const contentTypeHeader = 'Content-Type';
12
13
-// fetchApiServer is a wrapper around fetch that adds the necessary headers for the Crate API or the MCP API server.
14
export const parseJsonOrText = async (res: Response): Promise<unknown> => {
15
const text = await res.text();
16
try {
@@ -69,6 +68,7 @@ export const fetchApiServer = async (
69
68
return res;
70
};
71
+// fetchApiServer is a wrapper around fetch that adds the necessary headers for the Crate API or the MCP API server.
72
export const fetchApiServerJson = async <T>(
73
path: string,
74
config: ApiConfig,
0 commit comments