wip: add exception handler

This commit is contained in:
grillazz
2025-08-23 18:22:51 +02:00
parent 69f3dc3fd8
commit 58553c6d63
4 changed files with 11 additions and 10 deletions

View File

@@ -7,7 +7,6 @@ from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates
from rotoger import AppStructLogger
from app.api.health import router as health_router
from app.api.ml import router as ml_router
from app.api.nonsense import router as nonsense_router
@@ -15,9 +14,9 @@ from app.api.shakespeare import router as shakespeare_router
from app.api.stuff import router as stuff_router
from app.api.user import router as user_router
from app.config import settings as global_settings
from app.exception_handlers import register_exception_handlers
from app.redis import get_redis
from app.services.auth import AuthBearer
from app.exception_handlers import register_exception_handlers
logger = AppStructLogger().get_logger()
templates = Jinja2Templates(directory=Path(__file__).parent.parent / "templates")