mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-14 10:47:30 +08:00
add more site config
This commit is contained in:
@ -6,5 +6,5 @@ from starlette.responses import UJSONResponse
|
||||
async def exception_handler(request: Request, exc: HTTPException):
|
||||
return UJSONResponse(
|
||||
status_code=exc.status_code,
|
||||
content={'message': exc.detail},
|
||||
content={'msg': exc.detail},
|
||||
)
|
||||
|
Reference in New Issue
Block a user