MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / getChats

Function getChats

ui/node-react/client/src/api.js:52–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51// Chats
52export async function getChats() {
53 const res = await fetch(`${API_BASE}/chats`, { headers: getHeaders() });
54 if (!res.ok) throw new Error('Failed to fetch chats');
55 return res.json();
56}
57
58export async function getChat(id) {
59 const res = await fetch(`${API_BASE}/chats/${id}`, { headers: getHeaders() });

Callers 1

MainLayout.jsFile · 0.90

Calls 1

getHeadersFunction · 0.85

Tested by

no test coverage detected