diff options
Diffstat (limited to 'app/api/countries/route.js')
| -rw-r--r-- | app/api/countries/route.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/api/countries/route.js b/app/api/countries/route.js new file mode 100644 index 0000000..bcf022b --- /dev/null +++ b/app/api/countries/route.js @@ -0,0 +1,6 @@ +import { NextResponse } from 'next/server' +import countryData from '../../countries.json' + +export async function GET() { + return NextResponse.json(countryData) +} |
