I have a FastAPI app in which routes are dynamically generated based on an DB config.
However, once the routes are defined and the app running, if the config changes, there seems to be no way to reload the config so that the routes could reflect the config. The only solution I have for now is manually restart the asgi app by restarting uvicorn.
Is there any way to fully regenerate routes without stopping the app, that could ideally be called from an URL ?