File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 3333 root_path = "" if PROXY_PATH is None else f"/{ PROXY_PATH } " ,
3434 title = "IHR API" ,
3535 description = description ,
36- version = "v1.11" ,
37- docs_url = None ,
36+ version = "v1.12" ,
3837 redoc_url = None ,
38+ swagger_ui_parameters = { "defaultModelsExpandDepth" : - 1 }
3939)
4040
4141# Automatically import and register all routers inside "controllers"
4444 if hasattr (module , "router" ):
4545 app .include_router (module .router )
4646
47- @app .get ("/docs" , include_in_schema = False )
48- @app .get ("/docs/" , include_in_schema = False )
49- def swagger_ui_html ():
50- return get_swagger_ui_html (
51- openapi_url = app .openapi_url ,
52- title = app .title ,
53- swagger_js_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js" ,
54- swagger_css_url = "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css" ,
55- swagger_ui_parameters = {
56- "defaultModelsExpandDepth" : - 1
57- }
58- )
59-
6047origins = [
6148 "http://localhost:5173" ,
6249 "http://www.ihr.live" ,
You can’t perform that action at this time.
0 commit comments