mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-22 10:43:58 +00:00
refactor: move versioning efforts to initalization
This commit is contained in:
committed by
Alexandre Teles (afterSt0rm)
parent
8d36663610
commit
42c88290b1
21
app.py
21
app.py
@@ -15,15 +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,
|
||||
debug=True,
|
||||
)
|
||||
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",
|
||||
@@ -50,7 +49,9 @@ configure_auth(app)
|
||||
# sanic-limiter
|
||||
configure_limiter(app)
|
||||
|
||||
app.blueprint(api)
|
||||
|
||||
for endpoint in api:
|
||||
app.blueprint(api)
|
||||
|
||||
# https://sanic.dev/en/guide/how-to/static-redirects.html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user