Переработан эндпоинт getProfile на использование http клиента
All checks were successful
Build And Push / publish (push) Successful in 1m41s

This commit is contained in:
2025-09-26 12:27:24 +03:00
parent e218d0b130
commit bd7162b803
6 changed files with 111 additions and 2 deletions

View File

@ -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')