This commit is contained in:
KS Jannette
2026-02-13 15:12:18 -05:00
parent ac76871d60
commit 5208327b5d
5 changed files with 14 additions and 12 deletions

View File

@@ -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 = new URL('../data/notes.json', import.meta.url);
const loadNotes = async () => {
const raw = await readFile(DATA_PATH, 'utf-8');