Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Aplly Suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
frascuchon committed Feb 5, 2024
1 parent 72c3476 commit 3e1d9dd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/argilla_server/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3e1d9dd

Please sign in to comment.