Closed worldworm closed 1 year ago
Btw I just merged a new PR, so you've got conflicts now.
@alexschimpf The conflicts are resolved and the servers field is now using the app's one. π
:tada: This PR is included in version 3.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Pull Request Checklist
Description
How To Test
That's described here: https://fastapi.tiangolo.com/advanced/behind-a-proxy/#testing-locally-with-traefik Just replace the prefix (two times) from the routes.toml from "/api/v1" to "/api". Then you can run:
uvicorn examples.with_root_path:app --reload
Note
Here is described, that you can set a path prefix with uvicorn directly. My problem is, that the app.root_path attribute from fastapi stays empty in this case. I've had a look at the fastapi sourcecode, but I can't find where the uvicorn value comes from. So currently it only works if you set
FastAPI(root_path='/api')
directly.