generated from Luis/nextjs-python-web-template
14 lines
252 B
Python
14 lines
252 B
Python
from fastapi import APIRouter
|
|
|
|
from ..schemas import Machine, Status
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health", include_in_schema=True)
|
|
async def health() -> Machine: # str:
|
|
return Machine(name="test", status=Status.ONLINE)
|
|
|
|
|
|
# return "OK"
|