Добавлен эндпоинт getHospRecommendations

This commit is contained in:
2025-09-30 11:07:48 +03:00
parent 4be216375c
commit 5d84ea567d
3 changed files with 46 additions and 6 deletions

View File

@ -124,6 +124,16 @@ async def get_hosps():
)
@router.get('/getHospRecommendations')
async def get_hosp_recommendations():
"""
Get list of recommended hospitals.
"""
return await c.vitacore_api.getHospRecommendations(
'b708e782-4f83-4f3b-8639-512c0c9637bf'
)
@router.post('/measurement', status_code=status.HTTP_202_ACCEPTED)
async def measurement(
user: Annotated[str, Depends(login)],
@ -203,11 +213,6 @@ async def get_pat_flg(user: Annotated[str, Depends(login)]):
return mock.patFLG[0]
@router.get('/getHospRecommendations')
async def get_hosp_recommendations(user: Annotated[str, Depends(login)]):
return mock.hospRecommendations
@router.get('/getHospRoutes')
async def get_hosp_routes(user: Annotated[str, Depends(login)]):
return mock.hospRoutes