fix: 删除计数中间件
This commit is contained in:
zcr
2026-03-13 11:22:12 +08:00
parent 33b4dd4a7f
commit e25f49a776

View File

@@ -16,7 +16,7 @@ from fastapi.responses import JSONResponse
from app.api.api_route import router
from app.core.config import settings
from app.core.record_api_count import count_api_calls
# from app.core.record_api_count import count_api_calls
from app.schemas.response_template import ResponseModel
from logging_env import LOGGER_CONFIG_DICT
from dotenv import load_dotenv
@@ -48,7 +48,7 @@ def get_application() -> FastAPI:
allow_methods=["*"],
allow_headers=["*"],
)
application.middleware("http")(count_api_calls)
# application.middleware("http")(count_api_calls)
application.include_router(router=router)
return application