add healthcheck url

This commit is contained in:
2023-05-01 03:13:50 +03:00
parent 4a5dfbff3a
commit 4d065aa93f
5 changed files with 23 additions and 3 deletions

0
app/api/__init__.py Normal file
View File

View File

View File

@@ -0,0 +1,15 @@
from fastapi import APIRouter
from fastapi.responses import ORJSONResponse
from starlette import status
router = APIRouter()
@router.get(
"/healthcheck",
name="system:healthcheck",
status_code=status.HTTP_200_OK,
summary="Healthcheck service",
)
async def healthcheck() -> ORJSONResponse:
return ORJSONResponse(content=None, status_code=status.HTTP_200_OK)