car/handler/health.py
2023-05-31 14:31:13 +08:00

12 lines
228 B
Python

import logger
from fastapi import APIRouter
from utils.common import response
router = APIRouter(tags=["Health"], prefix="/api")
@router.get("/health")
def health():
logger.logger.info("health")
return response("OK")