rollback orjson

This commit is contained in:
jxxghp
2025-09-04 11:53:39 +08:00
parent 89b0ea0bf1
commit 84e5b77a5c
2 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -1,6 +1,5 @@
from fastapi import FastAPI from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import ORJSONResponse
from app.core.config import settings from app.core.config import settings
from app.startup.lifecycle import lifespan from app.startup.lifecycle import lifespan
@@ -13,8 +12,7 @@ def create_app() -> FastAPI:
_app = FastAPI( _app = FastAPI(
title=settings.PROJECT_NAME, title=settings.PROJECT_NAME,
openapi_url=f"{settings.API_V1_STR}/openapi.json", openapi_url=f"{settings.API_V1_STR}/openapi.json",
lifespan=lifespan, lifespan=lifespan
default_response_class=ORJSONResponse
) )
# 配置 CORS 中间件 # 配置 CORS 中间件
-1
View File
@@ -77,4 +77,3 @@ pympler~=1.1
smbprotocol~=1.15.0 smbprotocol~=1.15.0
setproctitle~=1.3.6 setproctitle~=1.3.6
httpx[socks]~=0.28.1 httpx[socks]~=0.28.1
orjson~=3.11.3