API routes use platform request and response primitives. Keep route handlers explicit, typed, and close to the app boundary.
Use Web Request and Response objects at the edge of the API contract.
Keep input parsing, validation, and response serialization visible in the route.
Use Deno-first tasks and avoid Node-only assumptions in docs examples.