Add GET endpoint for service
This commit is contained in:
parent
ca83c9e70e
commit
99200e44e2
9
endpoints/service.get.py
Normal file
9
endpoints/service.get.py
Normal file
@ -0,0 +1,9 @@
|
||||
# Entity: HealthCheck
|
||||
|
||||
from fastapi import APIRouter, status
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.get("/api/health", status_code=status.HTTP_200_OK)
|
||||
async def health_check():
|
||||
return {"status": "OK"}
|
Loading…
x
Reference in New Issue
Block a user