Add healthcheck

This commit is contained in:
2022-02-05 10:45:54 +03:00
parent 64e1fd33e7
commit 30d49c0844
5 changed files with 91 additions and 7 deletions

View File

@@ -8,6 +8,11 @@ from app.depends import check_token
router = APIRouter(prefix="/api/v1", dependencies=[Depends(check_token)])
@router.get("/healthcheck")
async def healthcheck():
return "Ok!"
@router.post("/update")
async def update(request: Request):
arq_pool: ArqRedis = request.app.state.arq_pool