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

View File

@@ -1,6 +1,5 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import ORJSONResponse
from app.core.config import settings
from app.startup.lifecycle import lifespan
@@ -13,8 +12,7 @@ def create_app() -> FastAPI:
_app = FastAPI(
title=settings.PROJECT_NAME,
openapi_url=f"{settings.API_V1_STR}/openapi.json",
lifespan=lifespan,
default_response_class=ORJSONResponse
lifespan=lifespan
)
# 配置 CORS 中间件