Switch to ES module exports for wws runtime

- Replace module.exports with export default
- wws uses ES modules, not CommonJS
- Fixes 'module is not defined' error

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-15 06:01:10 +01:00
parent 02d32536a0
commit 3fcebac27f
3 changed files with 15 additions and 12 deletions

View File

@@ -2,7 +2,6 @@
// Path: /api
async function handler(request) {
// CORS headers for browser requests
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, OPTIONS',
@@ -37,5 +36,5 @@ async function handler(request) {
})
}
// Export for wws
module.exports = { handler }
// ES Module export for wws
export default handler