Skip to content

Commit 48b699a

Browse files
committed
chore: correcting language change
Signed-off-by: Aditya-eddy <[email protected]>
1 parent 669f16a commit 48b699a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/api/createFileStructure/route.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ export async function GET(
2222
): Promise<NextResponse<Directory | ErrorResponse>> {
2323
const url = new URL(req.url);
2424
const projectKey = url.searchParams.get('project');
25-
25+
2626
if (!projectKey || !pathsMap[projectKey]) {
2727
return NextResponse.json({ message: 'Invalid or missing project key' }, { status: 400 });
2828
}
2929

3030
const basePath = process.cwd();
31-
const projectPath = join(basePath, 'components', 'atg', 'demo-projects', 'projects', 'javaScript');
32-
31+
const projectPath = join(basePath, pathsMap[projectKey]);
3332
// Check if path exists before proceeding
3433
if (!existsSync(projectPath)) {
3534
console.error(`Path does not exist: ${projectPath}`);

0 commit comments

Comments
 (0)