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

This commit is contained in:
2025-09-30 11:10:59 +03:00
parent 5d84ea567d
commit 355ea5c921
3 changed files with 36 additions and 5 deletions

View File

@ -134,6 +134,16 @@ async def get_hosp_recommendations():
)
@router.get('/getHospRoutes')
async def get_hosp_routes():
"""
Get list of recommended hospitals.
"""
return await c.vitacore_api.getHospRoutes(
'3092e1c5-e08b-4654-a027-82be90fe8a49'
)
@router.post('/measurement', status_code=status.HTTP_202_ACCEPTED)
async def measurement(
user: Annotated[str, Depends(login)],
@ -211,8 +221,3 @@ async def get_diagnostic_results(user: Annotated[str, Depends(login)]):
@router.get('/getPatFLG')
async def get_pat_flg(user: Annotated[str, Depends(login)]):
return mock.patFLG[0]
@router.get('/getHospRoutes')
async def get_hosp_routes(user: Annotated[str, Depends(login)]):
return mock.hospRoutes