FastAPI: How to get raw URL path from request?
FastAPI: How to get raw URL path from request? Question: I have a GET method with requested parameter in path: @router.get(‘/users/{user_id}’) async def get_user_from_string(user_id: str): return User(user_id) Is it possible to get base url raw path (i.e., ‘/users/{user_id}’) from the request? I have tried to use the following way: path = [route for route in …