mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
feat: favicon
This commit is contained in:
parent
42c88290b1
commit
a8126d785f
23
app.py
23
app.py
@ -15,14 +15,14 @@ from api.utils.auth import configure_auth
|
||||
|
||||
import sentry_sdk
|
||||
|
||||
# if os.environ.get("SENTRY_DSN"):
|
||||
# sentry_sdk.init(
|
||||
# dsn=os.environ["SENTRY_DSN"],
|
||||
# enable_tracing=True,
|
||||
# traces_sample_rate=1.0,
|
||||
# )
|
||||
# else:
|
||||
# print("WARNING: Sentry DSN not set, not enabling Sentry")
|
||||
if os.environ.get("SENTRY_DSN"):
|
||||
sentry_sdk.init(
|
||||
dsn=os.environ["SENTRY_DSN"],
|
||||
enable_tracing=True,
|
||||
traces_sample_rate=1.0,
|
||||
)
|
||||
else:
|
||||
print("WARNING: Sentry DSN not set, not enabling Sentry")
|
||||
|
||||
REDIRECTS = {
|
||||
"/": "/docs/swagger",
|
||||
@ -80,3 +80,10 @@ async def add_csp(_, response):
|
||||
response.headers[
|
||||
"Content-Security-Policy"
|
||||
] = "default-src * 'unsafe-inline' 'unsafe-eval' data: blob:;"
|
||||
|
||||
|
||||
app.static(
|
||||
"/favicon.ico",
|
||||
"static/img/favicon.ico",
|
||||
name="favicon",
|
||||
)
|
||||
|
BIN
static/img/favicon.ico
Normal file
BIN
static/img/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
x
Reference in New Issue
Block a user