export default { async fetch(request, env, ctx) { const url = new URL(request.url); // 1. Admin Login API if (url.pathname === '/api/admin/login' && request.method === 'POST') { const { email, password } = await request.json(); // Database ba KV check (Example purpose static check) if (email === "admin@luxobd.com" && password === "admin123") { return Response.json({ token: "secure_token_v1", message: "Login successful" }); } return Response.json({ error: "Invalid credentials" }, { status: 401 }); } // 2. Frontend HTML & UI (PC & Mobile Responsive + WhatsApp Order + Product Grid) const html = `