StartFromBegining
This commit is contained in:
3
api/presentation/routers/__init__.py
Normal file
3
api/presentation/routers/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from .ping import healthcheck_router
|
||||
|
||||
__all__ = ("healthcheck_router",)
|
13
api/presentation/routers/ping.py
Normal file
13
api/presentation/routers/ping.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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")
|
Reference in New Issue
Block a user