MCPcopy Create free account
hub / github.com/TAMustafa/Local_Chat_RAG / fetchFiles

Function fetchFiles

frontend/src/api/filesApi.ts:16–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14};
15
16export const fetchFiles = async () => {
17 try {
18 const response = await axios.get('/api/files');
19 return response.data;
20 } catch (error: any) {
21 throw error?.response?.data?.detail || 'Fetching files failed';
22 }
23};
24
25export const deleteFile = async (fileId: number) => {
26 try {

Callers 1

loadFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected