Browse Source
- Override APIRouter.mount() to only allow StaticFiles; raise FastAPIError for any other ASGI app with a clear error message - Add APIRouter._mount() as internal method used by include_router() and FastAPI.mount() to bypass the StaticFiles-only restriction - Override FastAPI.mount() to call self.router._mount() directly - Propagate StaticFiles mounts in include_router() via _mount() - Rename test file to test_apirouter_mount.py Fixes #10180pull/14924/head
2 changed files with 4 additions and 10 deletions
Loading…
Reference in new issue