1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-27 16:31:02 +00:00

Use static favicon for API docs. Ref #3674

This commit is contained in:
grossmj 2024-12-19 17:25:42 +07:00
parent c9694a4e1d
commit 7229707746
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7
2 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,7 @@ async def custom_swagger_ui_html():
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
swagger_js_url="/static/swagger-ui-bundle.js",
swagger_css_url="/static/swagger-ui.css",
swagger_favicon_url="/static/favicon.ico"
)
@app.get(app.swagger_ui_oauth2_redirect_url, include_in_schema=False)
@ -117,6 +118,7 @@ async def redoc_html():
openapi_url=app.openapi_url,
title=app.title + " - ReDoc",
redoc_js_url="/static/redoc.standalone.js",
redoc_favicon_url="/static/favicon.ico"
)
@app.exception_handler(ControllerError)

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB