Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa authored Jul 18, 2024
1 parent 0e7e2a0 commit 8fd4918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fractal_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def collect_routers(app: FastAPI) -> None:
settings = Inject(get_settings)

app.include_router(router_api, prefix="/api")
if "include" in settings.FRACTAL_API_V1_MODE:
if settings.FRACTAL_API_V1_MODE.startswith("include"):
app.include_router(router_api_v1, prefix="/api/v1")
app.include_router(
router_admin_v1, prefix="/admin/v1", tags=["V1 Admin area"]
Expand Down

0 comments on commit 8fd4918

Please sign in to comment.