set up /api/templates route

This commit is contained in:
Ramnique Singh 2025-07-24 20:12:23 +05:30
parent 46bbe4c189
commit 9f9b9e80a1

View file

@ -0,0 +1,6 @@
import { NextResponse } from 'next/server';
import { templates } from '@/app/lib/project_templates';
export async function GET() {
return NextResponse.json(templates);
}