This commit is contained in:
fengchuanhn@gmail.com
2026-05-17 22:05:37 +08:00
parent 3db327d93b
commit 8a55976d00
8 changed files with 268 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ from fastapi.middleware.cors import CORSMiddleware
from app.api.v1.router import api_router
from app.config import get_settings
from app.middleware.api_crypto import ApiCryptoMiddleware
from app.redis_client import close_redis, init_redis
from app.schemas.common import ApiResponse
@@ -32,6 +33,7 @@ def create_app() -> FastAPI:
allow_methods=["*"],
allow_headers=["*"],
)
app.add_middleware(ApiCryptoMiddleware)
@app.get("/health", response_model=ApiResponse[dict])
async def health() -> ApiResponse[dict]: