export default { async fetch(request) { const url = new URL(request.url); // 首页 if (url.pathname === '/') { return new Response(` Ozon 助手

🤖 Ozon 助手

Ozon 店铺管理工具

✨ 功能特性

• 查询商品信息
• 库存管理
• 价格跟踪
• 店铺数据统计

📦 当前状态

✓ API 连接正常 ✓ 数据库就绪 ✓ 前端完成
`, { headers: { 'Content-Type': 'text/html; charset=utf-8' } }); } // API 状态 if (url.pathname === '/api/status') { return new Response(JSON.stringify({ status: 'running', timestamp: new Date().toISOString(), uptime: Date.now() }), { headers: { 'Content-Type': 'application/json' } }); } // 健康检查 if (url.pathname === '/api/health') { return new Response(JSON.stringify({ status: 'healthy', service: 'ozon-assistant' }), { headers: { 'Content-Type': 'application/json' } }); } // 404 return new Response('Not Found', { status: 404 }); } };