mirror of
https://github.com/revanced/revanced-api.git
synced 2025-05-01 23:24:39 +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
|
import sentry_sdk
|
||||||
|
|
||||||
# if os.environ.get("SENTRY_DSN"):
|
if os.environ.get("SENTRY_DSN"):
|
||||||
# sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
# dsn=os.environ["SENTRY_DSN"],
|
dsn=os.environ["SENTRY_DSN"],
|
||||||
# enable_tracing=True,
|
enable_tracing=True,
|
||||||
# traces_sample_rate=1.0,
|
traces_sample_rate=1.0,
|
||||||
# )
|
)
|
||||||
# else:
|
else:
|
||||||
# print("WARNING: Sentry DSN not set, not enabling Sentry")
|
print("WARNING: Sentry DSN not set, not enabling Sentry")
|
||||||
|
|
||||||
REDIRECTS = {
|
REDIRECTS = {
|
||||||
"/": "/docs/swagger",
|
"/": "/docs/swagger",
|
||||||
@ -80,3 +80,10 @@ async def add_csp(_, response):
|
|||||||
response.headers[
|
response.headers[
|
||||||
"Content-Security-Policy"
|
"Content-Security-Policy"
|
||||||
] = "default-src * 'unsafe-inline' 'unsafe-eval' data: blob:;"
|
] = "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