service_man/api/presentation/routers/ping.py

14 lines
336 B
Python
Raw Normal View History

2024-03-31 00:58:43 +03:00
from fastapi import APIRouter
from api.application.contracts.healht_check import PingResponse
healthcheck_router = APIRouter(
prefix="/ping",
tags=["HealthCheck"],
)
@healthcheck_router.get("/", status_code=200, response_model=PingResponse)
async def ping_pong() -> PingResponse:
return PingResponse(status="System OK")