mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: course creation/del + file upload
This commit is contained in:
parent
9a8e4e4492
commit
c838b7e9cd
9 changed files with 151 additions and 21 deletions
2
app.py
2
app.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue