MCPcopy Create free account
hub / github.com/SecureAI-Tools/SecureAI-Tools / createFetcher

Function createFetcher

apps/web/lib/fe/api.ts:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15export function createFetcher<T>(): Fetcher<ResponseWithHeaders<T>, string> {
16 return (input: RequestInfo, init?: RequestInit) =>
17 makeRequest<null, T>(
18 /* method = */ "GET",
19 /* input = */ input,
20 /* req = */ null,
21 /* init = */ init,
22 );
23}
24
25export async function get<RES>(
26 input: RequestInfo,

Callers 13

ChatHistoryFunction · 0.90
NewChatFunction · 0.90
ChatWithDocsFunction · 0.90
OrgAISettingsFunction · 0.90
OrgGeneralSettingsFunction · 0.90
DocumentsSelectorModalFunction · 0.90
ChatPageFunction · 0.90
DataSourcesListPageFunction · 0.90
ConnectDataSourceFunction · 0.90

Calls 1

makeRequestFunction · 0.85

Tested by

no test coverage detected