diff --git a/src/argilla_server/_app.py b/src/argilla_server/_app.py index 43961512..179d58a0 100644 --- a/src/argilla_server/_app.py +++ b/src/argilla_server/_app.py @@ -95,12 +95,10 @@ async def redirect_api(): ]: app_configure(app) - if settings.base_url and settings.base_url != "/": - _app = FastAPI(docs_url=None, redoc_url=None, openapi_url=None) - _app.mount(settings.base_url, app) - return _app - else: - return app + _app = FastAPI(docs_url=None, redoc_url=None, openapi_url=None) + _app.mount(settings.base_url, app) + + return _app def configure_middleware(app: FastAPI):