diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-02-15 23:08:25 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-02-15 23:08:25 -0500 |
| commit | 89e121149faa6303600c719fb05bc9e3f8196924 (patch) | |
| tree | a2fa9ab52bc163150f514294c682f8a721e88520 | |
| parent | 1faa3ce4c4d5b48acf029f0f85029cfda38d1f21 (diff) | |
| download | alure-website-89e121149faa6303600c719fb05bc9e3f8196924.tar.gz alure-website-89e121149faa6303600c719fb05bc9e3f8196924.tar.bz2 alure-website-89e121149faa6303600c719fb05bc9e3f8196924.zip | |
API for countries
| -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) +} |
