fix(backend): refactored app to fastApi to avoid CORS errors

This commit is contained in:
ribardej
2025-10-22 14:37:48 +02:00
parent 40d07677bd
commit 6d8a6a55c0

View File

@@ -23,8 +23,8 @@ sentry_sdk.init(
send_default_pii=True,
)
app = FastAPI()
fastApi = FastAPI()
app = fastApi
# CORS for frontend dev server
fastApi.add_middleware(
@@ -99,4 +99,4 @@ async def authenticated_route(user: User = Depends(current_active_verified_user)
@fastApi.get("/sentry-debug")
async def trigger_error():
division_by_zero = 1 / 0
division_by_zero = 1 / 0