Some small changes
Z.B. Dateipfad oben hinschreiben
This commit is contained in:
1 parent
ea86fd75ec
commit
99cea87151
11 files changed
+19
-30
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user