This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
route_class not respected in nested router when trying to use custom APIRoute class #4110
Closed
9 tasks done
Labels
First Check
Commit to Help
Example Code
The below code is a small working example
The above works and the router is timed correctly
The below does not and the route is not timed
Description
Trying use a a router with a custom APIRoute class I have included a small example based on the documentation at https://fastapi.tiangolo.com/advanced/custom-request-and-route/?h=
/timed
{"message": "It's the time of my life"}
when requesting but not get the extra header, nor are the lines loggedThis may or may not be related to the below issues, they were not very clear
Operating System
Linux
Operating System Details
FastAPI Version
fastapi==0.70.0
Python Version
Python 3.9.7
Additional Context
No response
The text was updated successfully, but these errors were encountered: