mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 16:36:53 +08:00
rollback orjson
This commit is contained in:
+1
-3
@@ -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 中间件
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user