Skip to content
Snippets Groups Projects
Commit 05fc5ab6 authored by Antoine Gaudron-Desjardins's avatar Antoine Gaudron-Desjardins
Browse files

fix path

parent 3ed66de4
No related branches found
No related tags found
1 merge request!53Interface admin
Pipeline #44468 passed
......@@ -52,7 +52,7 @@ async def get_open_api_endpoint(connect_id: str = Cookie(...), db: Session = Dep
async def get_documentation(connect_id: str = Cookie(...), db: Session = Depends(get_db)):
user = crud.get_user(connect_id, db)
if user.admin:
return get_swagger_ui_html(openapi_url="/openapi.json", title="docs")
return get_swagger_ui_html(openapi_url="/api/openapi.json", title="docs")
# Integration of routers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment