Updating authentication middleware with unmapped route dependencies leaves some routes on the old implementation. In a large API, manually auditing every route for middleware usage is error-prone. Build maps every route that depends on the middleware through the knowledge graph, generates the updated implementation, and surfaces every affected file as a diff before applying anything. Request:Documentation Index
Fetch the complete documentation index at: https://docs.potpie.ai/llms.txt
Use this file to discover all available pages before exploring further.
- Every route that applies the current middleware
- Every file that imports or configures it
- Any tests that cover the existing behavior
- Updated middleware implementation with OAuth support
- Adjustments to every dependent route where the interface changes
- Modified test coverage reflecting the new behavior

