Skip to content

Commit

Permalink
Use static favicon for API docs. Ref #3674
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Dec 19, 2024
1 parent c9694a4 commit 7229707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gns3server/api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
Binary file added gns3server/static/favicon.ico
Binary file not shown.

0 comments on commit 7229707

Please sign in to comment.