add searching, total unread message, create user
This commit is contained in:
@@ -16,12 +16,18 @@ router.use(authenticate);
|
||||
// Get all emails
|
||||
router.get('/', crmEmailController.getEmails);
|
||||
|
||||
// Search emails
|
||||
// Search emails (DB search - searches in stored emails only)
|
||||
router.get('/search', crmEmailController.searchEmails);
|
||||
|
||||
// Search emails using JMAP full-text search (searches in all emails via JMAP)
|
||||
router.get('/search-jmap', crmEmailController.searchEmailsJMAP);
|
||||
|
||||
// Get unread count
|
||||
router.get('/unread-count', crmEmailController.getUnreadCount);
|
||||
|
||||
// Sync latest emails from JMAP
|
||||
router.post('/sync', crmEmailController.syncEmails);
|
||||
|
||||
// Get email thread (conversation)
|
||||
router.get(
|
||||
'/thread/:threadId',
|
||||
|
||||
Reference in New Issue
Block a user