This commit is contained in:
KS Jannette
2026-02-13 11:41:38 -05:00
parent 6ed41c0e82
commit e3cd791745
2 changed files with 3 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ router.get('/', async (req, res) => {
const notes = await loadNotes(); const notes = await loadNotes();
res.json(notes); res.json(notes);
} catch (err) { } catch (err) {
console.error(`Error loading notes: ${err}`)
res.status(500).json({ error: 'Failed to load notes' }); res.status(500).json({ error: 'Failed to load notes' });
} }
}); });
@@ -30,6 +31,7 @@ router.post('/cluster', async (req, res) => {
const clusters = await clusterNotes(notes); const clusters = await clusterNotes(notes);
res.json(clusters); res.json(clusters);
} catch (err) { } catch (err) {
console.error(`Clustering failed: ${err}` )
res.status(500).json({ error: `Clustering failed: ${err}` }); res.status(500).json({ error: `Clustering failed: ${err}` });
} }
}); });

View File

@@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { BrowserRouter } from 'react-router-dom'; import { BrowserRouter } from 'react-router-dom';
import './styles/index.css' import './styles/index.css'
import App from './App.tsx' import App from './App'
const queryClient = new QueryClient(); const queryClient = new QueryClient();