mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 06:57:47 +01:00
fix(backend): refactored app to fastApi to avoid CORS errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user