This commit is contained in:
2022-04-24 15:30:52 +03:00
parent 0e583fb159
commit f539ecb87d
4 changed files with 63 additions and 1 deletions

View File

@@ -1,9 +1,17 @@
from fastapi import FastAPI
import sentry_sdk
from app.views import router
from core.config import env_config
from core.db import database
sentry_sdk.init(
env_config.SENTRY_DSN,
)
def start_app() -> FastAPI:
app = FastAPI()

View File

@@ -10,5 +10,7 @@ class EnvConfig(BaseSettings):
POSTGRES_PORT: int
POSTGRES_DB: str
SENTRY_DSN: str
env_config = EnvConfig()