Добавлен эндпоинт getHospRoutes
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user