Skip to content

fix: support nested routers in FastAPI 0.140 - #286

Open
LilScottyPippen wants to merge 1 commit into
laurentS:masterfrom
LilScottyPippen:fix-fastapi-new-router-support
Open

fix: support nested routers in FastAPI 0.140#286
LilScottyPippen wants to merge 1 commit into
laurentS:masterfrom
LilScottyPippen:fix-fastapi-new-router-support

Conversation

@LilScottyPippen

Copy link
Copy Markdown

Fix default_limits not applied with FastAPI >= 0.140

FastAPI changed route internals and introduced _IncludedRouter.
SlowAPI middleware couldn't resolve endpoint handlers anymore,
causing default_limits and application_limits to silently skip.

This patch adds recursive route resolution for new router structures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant