- Add hono dependency - Replace if/else routing chain with Hono app - Convert all HTTP routes to Hono format: - GET /health, /setup-webhook, /webhook-info - POST /webhook - ALL /api/* - GET / - Keep email, scheduled, queue handlers unchanged - Maintain 100% backward compatibility Benefits: - Cleaner declarative routing - Type-safe Env bindings - Ready for future middleware (CORS, rate limiting) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
172 KiB
172 KiB