cleanup
This commit is contained in:
@@ -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}` });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user