[X] Make sure you are making a pull request against the main branch.
[X] Make sure your pull request title matches the requested format.
[X] Make sure to lint, type-check, and run unit and API tests.
Description
Instead of trying to hackily clone the FastAPI app and modifying the cloned app, I'm now stripping all routes from the original FastAPI app (except for docs/openapi routes, depending on params) and then modifying it in place. This will ensure that all the original FastAPI app properties are preserved properly.
Pull Request Checklist
Description
Instead of trying to hackily clone the FastAPI app and modifying the cloned app, I'm now stripping all routes from the original FastAPI app (except for docs/openapi routes, depending on params) and then modifying it in place. This will ensure that all the original FastAPI app properties are preserved properly.