AntiPattern
Routing Metadata Timing Mismatch
routing-metadata-timing-mismatch
Request routing metadata and route selection arrive after middleware/early request handling, so code that reads route info too soon (or reinitializes async resources) fails or returns incorrect paths, causing auth, logging, and API behavior inconsistencies.