From 56d0c21b79d3d30cdf0154a44a151a337d5d312a Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Fri, 13 Feb 2026 13:45:00 -0500 Subject: [PATCH] clean --- backend/app.js | 2 +- backend/routes/notes.routes.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/app.js b/backend/app.js index 7ba4b2b..5c919b6 100644 --- a/backend/app.js +++ b/backend/app.js @@ -10,7 +10,7 @@ app.use(express.json()); app.use('/v1/notes', router); app.use((req, res) => { - res.status(404).json({ error: `Requested path is invalid or does not exist: ${req.method} ${req.originalUrl}` }); + res.status(404).json({ error: `Requested path is invalid or does not exist: ${req.method} ${req.originalUrl}` }); }); export default app; diff --git a/backend/routes/notes.routes.js b/backend/routes/notes.routes.js index 44bd6cc..9587586 100644 --- a/backend/routes/notes.routes.js +++ b/backend/routes/notes.routes.js @@ -3,7 +3,7 @@ import { readFile } from 'fs/promises'; import { clusterNotes } from '../services/clustering.service.js'; const router = Router(); -const DATA_PATH = '../data/notes.json' +const DATA_PATH = '../data/notes.json'; const loadNotes = async () => { const raw = await readFile(DATA_PATH, 'utf-8'); @@ -15,7 +15,7 @@ router.get('/', async (req, res) => { const notes = await loadNotes(); res.json(notes); } catch (err) { - console.error(`Error loading notes: ${err}`) + console.error(`Error loading notes: ${err}`); res.status(500).json({ error: 'Failed to load notes' }); } }); @@ -26,7 +26,7 @@ router.post('/cluster', async (req, res) => { const clusters = await clusterNotes(notes); res.json(clusters); } catch (err) { - console.error(`Clustering failed: ${err}` ) + console.error(`Clustering failed: ${err}`); res.status(500).json({ error: `Clustering failed: ${err}` }); } });