From 235edd9d4c0da40af079e61a1510c950e39ee358 Mon Sep 17 00:00:00 2001 From: urec56 Date: Tue, 18 Jun 2024 17:04:24 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D0=BB=D0=B8=D0=BF=20=D0=B4=D0=BB=D1=8F=20=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chat/router.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/chat/router.py b/app/chat/router.py index b4dc3d3..a578fea 100644 --- a/app/chat/router.py +++ b/app/chat/router.py @@ -24,13 +24,18 @@ from app.users.schemas import SCreateInvitationLink, SUser, SInvitationData router = APIRouter(prefix="/chat", tags=["Чат"]) +@router.get( + "/test" +) +async def root(): + await asyncio.sleep(10) + @router.get( "", status_code=status.HTTP_200_OK, response_model=SAllowedChats, ) async def get_all_chats(user: SUser = Depends(check_verificated_user_with_exc), uow=Depends(UnitOfWork)): - await asyncio.sleep(10) async with uow: allowed_chats = await uow.user.get_user_allowed_chats(user.id) return allowed_chats