Skip to content

Commit 39a5737

Browse files
committed
Update fetch.ts
1 parent c768f53 commit 39a5737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const mcpNameHeader = 'X-mcp';
1010
const jqHeader = 'X-jq';
1111
const contentTypeHeader = 'Content-Type';
1212

13-
// fetchApiServer is a wrapper around fetch that adds the necessary headers for the Crate API or the MCP API server.
1413
export const parseJsonOrText = async (res: Response): Promise<unknown> => {
1514
const text = await res.text();
1615
try {
@@ -69,6 +68,7 @@ export const fetchApiServer = async (
6968
return res;
7069
};
7170

71+
// fetchApiServer is a wrapper around fetch that adds the necessary headers for the Crate API or the MCP API server.
7272
export const fetchApiServerJson = async <T>(
7373
path: string,
7474
config: ApiConfig,

0 commit comments

Comments
 (0)