DeanWay / fastapi-versioning

api versioning for fastapi web applications
MIT License
642 stars 63 forks source link

Fix issue 50 #55

Closed DeanWay closed 3 years ago

DeanWay commented 3 years ago

I believe this is a cleaner fix to #50 than #51.

I've also provided a test case and an example application.

The solution here is really just to avoid passing root_path altogether and allow it to be set by uvicorn or hypercorn, or else passing it to VersionedFastAPI if you're not using uvicorn or hypercorn