Переработан эндпоинт getProfile на использование http клиента
All checks were successful
Build And Push / publish (push) Successful in 1m41s
All checks were successful
Build And Push / publish (push) Successful in 1m41s
This commit is contained in:
@ -6,6 +6,7 @@ from typing import Annotated, Any
|
||||
from fastapi import APIRouter, Body, Depends, status
|
||||
|
||||
from apps.users.auth import login
|
||||
from clients import clients as c
|
||||
from shared.redis import client as cache
|
||||
|
||||
from . import mock
|
||||
@ -95,8 +96,10 @@ async def find_pat(user: Annotated[str, Depends(login)]):
|
||||
|
||||
|
||||
@router.get('/getProfile')
|
||||
async def get_profile(user: Annotated[str, Depends(login)]):
|
||||
return mock.profile[0]
|
||||
async def get_profile():
|
||||
return await c.vitacore_api.getProfile(
|
||||
'3c963d68-14e5-4a43-ab15-1d2d19b76398'
|
||||
)
|
||||
|
||||
|
||||
@router.get('/getHosps')
|
||||
|
||||
Reference in New Issue
Block a user