mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +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,
|
send_default_pii=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
app = FastAPI()
|
|
||||||
fastApi = FastAPI()
|
fastApi = FastAPI()
|
||||||
|
app = fastApi
|
||||||
|
|
||||||
# CORS for frontend dev server
|
# CORS for frontend dev server
|
||||||
fastApi.add_middleware(
|
fastApi.add_middleware(
|
||||||
|
|||||||
Reference in New Issue
Block a user