Add healthcheck

This commit is contained in:
2022-02-05 10:26:23 +03:00
parent 42ebed5503
commit 67fc4e2e3e
6 changed files with 132 additions and 5 deletions

View File

@@ -83,3 +83,13 @@ async def delete_file(file_id: int):
await uploaded_file.delete()
return uploaded_file
healthcheck_router = APIRouter(
prefix="/api/v1", dependencies=[Depends(check_token)], tags=["healthcheck"]
)
@healthcheck_router.get("/healthcheck")
async def healthcheck():
return "Ok"