mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-10 10:47:20 +00:00
27da57aff5
This commit cleans up most of the code related to v1 route that is used only by visio. This is first step before introducing an update to the v2 route.
22 lines
484 B
Python
22 lines
484 B
Python
"""Application."""
|
|
|
|
import sentry_sdk
|
|
from fastapi import FastAPI
|
|
|
|
from summary.api import health
|
|
from summary.api.main import api_router_v2
|
|
from summary.core.config import get_settings
|
|
|
|
settings = get_settings()
|
|
|
|
|
|
if settings.sentry_dsn and settings.sentry_is_enabled:
|
|
sentry_sdk.init(dsn=settings.sentry_dsn, enable_tracing=True)
|
|
|
|
app = FastAPI(
|
|
title=settings.app_name,
|
|
)
|
|
|
|
app.include_router(api_router_v2, prefix=settings.app_api_v2_str)
|
|
app.include_router(health.router)
|