Skip to content

Commit

Permalink
Add sentry to pip requs
Browse files Browse the repository at this point in the history
Also format with black and isort
  • Loading branch information
roggif committed Feb 14, 2024
1 parent c65e947 commit d1c91fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ idna==3.4
numpy==1.25.2
pydantic==2.1.1
pydantic_core==2.4.0
sentry-sdk==1.40.4
shapely==2.0.1
sniffio==1.3.0
starlette==0.36.3
Expand Down
8 changes: 6 additions & 2 deletions src/aidapp/api/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sentry_sdk
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
import sentry_sdk

from aidapp.api.routers import admin

Expand All @@ -11,7 +11,11 @@

app = FastAPI()

origins = ["http://localhost:5173", "https://aidapp-fe.vercel.app/", "https://app.aidapp.it/"]
origins = [
"http://localhost:5173",
"https://aidapp-fe.vercel.app/",
"https://app.aidapp.it/",
]

app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit d1c91fe

Please sign in to comment.