feat: initial commit
This commit is contained in:
15
service/routers/health.py
Normal file
15
service/routers/health.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from fastapi import APIRouter
|
||||
from ..models.response import HealthResponse
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
VERSION = "0.1.0"
|
||||
|
||||
|
||||
@router.get("/health", response_model=HealthResponse)
|
||||
async def health() -> HealthResponse:
|
||||
return HealthResponse(
|
||||
status="ok",
|
||||
version=VERSION,
|
||||
dynamic_session_ready=True,
|
||||
)
|
||||
Reference in New Issue
Block a user