Skip to content
Snippets Groups Projects

Interface admin

Merged Antoine Gaudron-Desjardins requested to merge interface_admin into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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
Loading