Add first lab code
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
from ..schemas.common import Health
|
||||
|
||||
router = APIRouter(prefix='/health')
|
||||
|
||||
|
||||
@router.get("/live", response_model=Health)
|
||||
def health_live():
|
||||
return {"status": "ok"}
|
||||
|
||||
|
||||
@router.get("/ready", response_model=Health)
|
||||
def health_ready():
|
||||
return {"status": "ok"}
|
||||
Reference in New Issue
Block a user