Skip to content

Commit

Permalink
change favicon link
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrauscher committed Mar 6, 2024
1 parent 3347c63 commit 91418d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ install-name = "api"
sources = ["src/api"]

[tool.hatch.build.targets.zipped-directory.force-include]
".env" = "/.env"
"static" = "/static"
".env" = "/.env"
4 changes: 1 addition & 3 deletions src/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
responses={404: {"description": "Not found"}}, # Custom 404 page
)

# Serve static files from the /static directory
app.mount("/static", StaticFiles(directory="static"), name="static")

# Enable CORS
app.add_middleware(
Expand Down Expand Up @@ -71,7 +69,7 @@ async def swagger_ui_html():
openapi_url=app.openapi_url,
title=app.title + " - Documentation",
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
swagger_favicon_url="/static/favicon.png",
swagger_favicon_url="https://i.imgur.com/2Y59zOy.png",
)


Expand Down
Binary file removed static/favicon.png
Binary file not shown.

0 comments on commit 91418d7

Please sign in to comment.