Add healthcheck

This commit is contained in:
2022-02-05 10:36:35 +03:00
parent c43636731b
commit d50728d100
6 changed files with 128 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
from fastapi import APIRouter, Depends
from app.depends import check_token
healtcheck_router = APIRouter(
prefix="/api/v1",
tags=["healthcheck"],
dependencies=[Depends(check_token)],
)
@healtcheck_router.get("/healthcheck")
async def healthcheck():
return "Ok!"