From 89e121149faa6303600c719fb05bc9e3f8196924 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 15 Feb 2025 23:08:25 -0500 Subject: API for countries --- app/api/countries/route.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/api/countries/route.js (limited to 'app/api/countries/route.js') 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) +} -- cgit v1.2.3