references/pages/api.md
Pages Request Handling
Use the current Pages API and the project framework guide rather than translating a generic Worker example into Pages.
| Task | Documentation | | --- | --- | | Implement handlers and use context or asset fallback | Functions API reference | | Resolve dynamic paths and invocation routes | Routing | | Apply shared request logic | Middleware | | Understand framework-generated Worker output | Advanced mode | | Find the guide for the existing framework | Framework guides |
First identify whether routing comes from the Functions directory or generated advanced-mode output. See Pages Functions APIs for focused handler tasks and patterns.md for migration decisions.