add more site config

This commit is contained in:
long2ice
2020-04-26 23:15:23 +08:00
parent 49c7bc0df0
commit dffd81f8fa
21 changed files with 342 additions and 188 deletions

View File

@ -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},
)