mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-16 12:45:42 +02:00
Fix smtp
This commit is contained in:
@@ -94,6 +94,27 @@ async def my_virtual_boxes(
|
||||
return [_to_response(v) for v in items]
|
||||
|
||||
|
||||
@router.get(
|
||||
"/my/mailboxes",
|
||||
response_model=list[MailboxBriefResponse],
|
||||
summary="Caselle PEC da cui l'utente può inviare tramite Virtual Box",
|
||||
description=(
|
||||
"Restituisce le caselle PEC attive associate alle Virtual Box "
|
||||
"a cui l'utente corrente è assegnato. "
|
||||
"Usato dalla pagina di composizione per mostrare le caselle mittente disponibili."
|
||||
),
|
||||
)
|
||||
async def my_sendable_mailboxes(
|
||||
current_user: CurrentUser,
|
||||
db: DB,
|
||||
) -> list[MailboxBriefResponse]:
|
||||
service = VirtualBoxService(db)
|
||||
mailboxes = await service.get_user_sendable_mailboxes(
|
||||
current_user.id, current_user.tenant_id
|
||||
)
|
||||
return [MailboxBriefResponse.model_validate(m) for m in mailboxes]
|
||||
|
||||
|
||||
@router.get(
|
||||
"/{vbox_id}",
|
||||
response_model=VirtualBoxResponse,
|
||||
|
||||
Reference in New Issue
Block a user