mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-15 03:26:22 +02:00
- cloudflare-outages.js - Cloudflare Radar API - faa-status.js - FAA NASSTATUS - fred-data.js - FRED economic data - gdelt-geo.js - GDELT protest data - nga-warnings.js - NGA maritime warnings Updated frontend services to use new endpoints. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
640 B
JavaScript
23 lines
640 B
JavaScript
export const config = { runtime: 'edge' };
|
|
|
|
export default async function handler(req) {
|
|
try {
|
|
const response = await fetch('https://nasstatus.faa.gov/api/airport-status-information', {
|
|
headers: { 'Accept': 'application/xml' },
|
|
});
|
|
const data = await response.text();
|
|
return new Response(data, {
|
|
status: response.status,
|
|
headers: {
|
|
'Content-Type': 'application/xml',
|
|
'Access-Control-Allow-Origin': '*',
|
|
},
|
|
});
|
|
} catch (error) {
|
|
return new Response(`<error>${error.message}</error>`, {
|
|
status: 500,
|
|
headers: { 'Content-Type': 'application/xml' },
|
|
});
|
|
}
|
|
}
|