From f2e139050789341863da9592cf86e098cc850036 Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Fri, 13 Feb 2026 13:35:11 -0500 Subject: [PATCH] cleanup --- backend/routes/notes.routes.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/routes/notes.routes.js b/backend/routes/notes.routes.js index b03e863..44bd6cc 100644 --- a/backend/routes/notes.routes.js +++ b/backend/routes/notes.routes.js @@ -1,14 +1,9 @@ import { Router } from 'express'; import { readFile } from 'fs/promises'; -import { fileURLToPath } from 'url'; -import { dirname, join } from 'path'; import { clusterNotes } from '../services/clustering.service.js'; const router = Router(); - -const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(__filename); -const DATA_PATH = join(__dirname, '..', 'data', 'notes.json'); +const DATA_PATH = '../data/notes.json' const loadNotes = async () => { const raw = await readFile(DATA_PATH, 'utf-8');