feat: chats list on the left of the client chat
This commit is contained in:
@@ -91,6 +91,18 @@ async def get_chat(
|
||||
return await ChatService(session).get_chat(request)
|
||||
|
||||
|
||||
@chat_router.get(
|
||||
'/for-client/{client_id}',
|
||||
operation_id='get_client_chats_list',
|
||||
response_model=GetChatsListResponse,
|
||||
)
|
||||
async def get_client_chats_list(
|
||||
session: Annotated[AsyncSession, Depends(get_session)],
|
||||
client_id: int,
|
||||
):
|
||||
return await ChatService(session).get_client_chats_list(client_id)
|
||||
|
||||
|
||||
@chat_router.post(
|
||||
'/create',
|
||||
operation_id='create_chat',
|
||||
|
||||
Reference in New Issue
Block a user