from common.config.site_settings import site_settings from fastapi.responses import RedirectResponse import uvicorn from webapi.bootstrap.application import create_app from webapi.routes.starrocks_metrics import metrics_query app = create_app() # Include routers app.include_router(metrics_query.router) @app.get("/", status_code=301) async def root(): """ TODO: redirect client to /docs """ return RedirectResponse("docs") if __name__ == "__main__": uvicorn.run( app="main:app", host=site_settings.SERVER_HOST, port=site_settings.SERVER_PORT )