Skip to content

Commit 91418d7

Browse files
committed
change favicon link
1 parent 3347c63 commit 91418d7

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,4 @@ install-name = "api"
4949
sources = ["src/api"]
5050

5151
[tool.hatch.build.targets.zipped-directory.force-include]
52-
".env" = "/.env"
53-
"static" = "/static"
52+
".env" = "/.env"

src/api/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
responses={404: {"description": "Not found"}}, # Custom 404 page
3939
)
4040

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

4442
# Enable CORS
4543
app.add_middleware(
@@ -71,7 +69,7 @@ async def swagger_ui_html():
7169
openapi_url=app.openapi_url,
7270
title=app.title + " - Documentation",
7371
oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url,
74-
swagger_favicon_url="/static/favicon.png",
72+
swagger_favicon_url="https://i.imgur.com/2Y59zOy.png",
7573
)
7674

7775

static/favicon.png

-2.43 KB
Binary file not shown.

0 commit comments

Comments
 (0)