13 lines
335 B
Python
13 lines
335 B
Python
from __future__ import annotations
|
|||
|
|
|
||
|
|
from fastapi import APIRouter
|
||
|
|
|
||
|
|
from sakura_cloud.schemas.common import ApiResponse
|
||
|
|
|
||
|
|
|
||
|
|
router = APIRouter()
|
||
|
|
|
||
|
|
|
||
|
|
@router.get("/health", response_model=ApiResponse[dict[str, str]])
|
||
|
|
def health_check() -> ApiResponse[dict[str, str]]:
|
||
|
|
return ApiResponse(data={"status": "ok", "service": "sakura-cloud"})
|