mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
rollback orjson
This commit is contained in:
@@ -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 中间件
|
||||
|
||||
Reference in New Issue
Block a user