feat: deals viewer mode and links for viewers

This commit is contained in:
2025-07-04 15:12:21 +04:00
parent bd7d9a19d3
commit 0caf1f3f42
19 changed files with 246 additions and 83 deletions

View File

@@ -98,3 +98,15 @@ async def delete_client(
session: Annotated[AsyncSession, Depends(get_session)]
):
return await ClientService(session).delete(request)
@client_router.post(
'/link/{client_id}',
operation_id='client_link',
response_model=CreateGuestUrlResponse,
)
async def client_link(
session: Annotated[AsyncSession, Depends(get_session)],
client_id: int,
):
return await ClientService(session).create_guest_url(client_id)