Some small changes

Z.B. Dateipfad oben hinschreiben
This commit is contained in:
Rudi committed 2026-09-23 18:13:48 +02:00
1 parent ea86fd75ec
commit 99cea87151
11 files changed
+19 -30

No files matched your search

+5 -1
View File
@@ -1,14 +1,18 @@
# @/main.py
from fastapi import FastAPI, Request, status
from fastapi.responses import JSONResponse
from fastapi.templating import Jinja2Templates
from exceptions import UserNotFoundError, UserAlreadyExistsError, UnauthorizedError, ForbiddenError, ValidationError
from exceptions import UserNotFoundError, UserAlreadyExistsError, UnauthorizedError, ForbiddenError, ValidationError #Errors
import models #Database
from routers import api_router #API
app = FastAPI(title="Tandur API")
app.include_router(api_router)
templates = Jinja2Templates(directory="templates")
######### ERROR handling #########
# 1. Globale Regel für 404