added route to download comment_gen and

code_refinment
This commit is contained in:
Karma Riuk
2025-04-28 16:26:50 +02:00
parent 59f68c677a
commit ac6518754f
3 changed files with 50 additions and 0 deletions

11
src/utils/paths.js Normal file
View File

@ -0,0 +1,11 @@
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Get the project root directory (2 levels up from src/utils)
export const PROJECT_ROOT = join(__dirname, '../..');
// Helper function to create paths relative to project root
export const getProjectPath = (relativePath) => join(PROJECT_ROOT, relativePath);