Commit Graph

5 Commits

Author SHA1 Message Date
Purushot14 5ad3874bf8 Removed Meta info from tutorial001 2025-03-13 18:56:23 +05:30
Purushot14 95d92579e3 python 3.9 not supported | on type check so handle that 2025-03-13 00:26:17 +05:30
Purushot14 ff94d8459f python 3.9 not supported | on type check so handle that 2025-03-13 00:22:40 +05:30
pre-commit-ci[bot] 820b235528 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 2025-03-12 18:43:10 +00:00
Purushot14 3c1d6ebf9f feat: Add support for custom APIRoute and APIRouter in FastAPI
- Introduced `route_class` and `router_class` parameters to allow custom route and router classes.
- Updated `FastAPI` initialization to use the provided `router_class` and `route_class`.
- Modified webhook initialization to respect the custom router class.
- Added test cases to validate:
  - Custom `route_class` and `router_class` usage.
  - Route naming consistency.
  - Presence of `X-Response-Time` header in responses.

This enhances FastAPI’s flexibility, allowing users to customize route handling and routing behavior.
2025-03-13 00:09:00 +05:30