save email as pdf likae attachment version 2

This commit is contained in:
2026-02-04 19:49:09 +01:00
parent d98c97a81f
commit 2d052c76d9
21 changed files with 1143 additions and 151 deletions
+9
View File
@@ -176,6 +176,15 @@ router.post(
cachedEmailController.saveAttachmentTo
);
// E-Mail als PDF exportieren und speichern
// POST /api/emails/:id/save-as-pdf { entityType, entityId?, targetKey }
router.post(
'/emails/:id/save-as-pdf',
authenticate,
requirePermission('customers:update'),
cachedEmailController.saveEmailAsPdf
);
// ==================== VERTRAGSZUORDNUNG ====================
// E-Mail Vertrag zuordnen