save attachment from email in customer data and - or contracts
This commit is contained in:
@@ -158,6 +158,24 @@ router.get(
|
||||
cachedEmailController.downloadAttachment
|
||||
);
|
||||
|
||||
// Verfügbare Dokumenten-Ziele für Anhänge (zum Speichern)
|
||||
// GET /api/emails/:id/attachment-targets
|
||||
router.get(
|
||||
'/emails/:id/attachment-targets',
|
||||
authenticate,
|
||||
requirePermission('customers:read'),
|
||||
cachedEmailController.getAttachmentTargets
|
||||
);
|
||||
|
||||
// Anhang in Dokumentenfeld speichern
|
||||
// POST /api/emails/:id/attachments/:filename/save-to { entityType, entityId?, targetKey }
|
||||
router.post(
|
||||
'/emails/:id/attachments/:filename/save-to',
|
||||
authenticate,
|
||||
requirePermission('customers:update'),
|
||||
cachedEmailController.saveAttachmentTo
|
||||
);
|
||||
|
||||
// ==================== VERTRAGSZUORDNUNG ====================
|
||||
|
||||
// E-Mail Vertrag zuordnen
|
||||
|
||||
Reference in New Issue
Block a user