feat: course creation/del + file upload

This commit is contained in:
swve 2022-10-15 16:55:19 +02:00
parent 9a8e4e4492
commit c838b7e9cd
9 changed files with 151 additions and 21 deletions

2
app.py
View file

@ -3,6 +3,7 @@ from fastapi import FastAPI
from src.main import global_router
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import JSONResponse
from fastapi.staticfiles import StaticFiles
from fastapi_jwt_auth.exceptions import AuthJWTException
########################
@ -28,6 +29,7 @@ app.add_middleware(
allow_headers=["*"]
)
app.mount("/content", StaticFiles(directory="content"), name="content")
# Exception Handler
@app.exception_handler(AuthJWTException)