rework mail domain stats

We can now show list count, alias count as well in the mail domains UI
This commit is contained in:
Girish Ramakrishnan
2025-12-05 12:54:48 +01:00
parent 425e196dfc
commit f714cd66f7
9 changed files with 106 additions and 163 deletions
+7 -7
View File
@@ -404,19 +404,19 @@ async function initializeExpressSync() {
router.post('/api/v1/mail/:domain/relay', json, token, authorizeAdmin, routes.mail.setMailRelay);
router.post('/api/v1/mail/:domain/banner', json, token, authorizeMailManager, routes.mail.setBanner);
router.post('/api/v1/mail/:domain/send_test_mail', json, token, authorizeMailManager, routes.mail.sendTestMail);
router.get ('/api/v1/mail/:domain/mailbox_count', token, authorizeMailManager, routes.mail.getMailboxCount);
router.get ('/api/v1/mail/:domain/mailboxes', token, authorizeMailManager, routes.mail.listMailboxes);
router.get ('/api/v1/mail/:domain/stats', token, authorizeMailManager, routes.mail.getStats);
router.get ('/api/v1/mail/:domain/mailboxes', token, authorizeMailManager, routes.mail.listMailboxesByDomain);
router.get ('/api/v1/mail/:domain/mailboxes/:name', token, authorizeMailManager, routes.mail.getMailbox);
router.post('/api/v1/mail/:domain/mailboxes', json, token, authorizeMailManager, routes.mail.addMailbox);
router.post('/api/v1/mail/:domain/mailboxes/:name', json, token, authorizeMailManager, routes.mail.updateMailbox);
router.del ('/api/v1/mail/:domain/mailboxes/:name', json, token, authorizeMailManager, routes.mail.delMailbox);
router.get ('/api/v1/mail/:domain/mailboxes/:name/aliases', token, authorizeMailManager, routes.mail.getAliases);
router.put ('/api/v1/mail/:domain/mailboxes/:name/aliases', json, token, authorizeMailManager, routes.mail.setAliases);
router.get ('/api/v1/mail/:domain/lists', token, authorizeMailManager, routes.mail.getLists);
router.post('/api/v1/mail/:domain/lists', json, token, authorizeMailManager, routes.mail.addList);
router.get ('/api/v1/mail/:domain/lists/:name', token, authorizeMailManager, routes.mail.getList);
router.post('/api/v1/mail/:domain/lists/:name', json, token, authorizeMailManager, routes.mail.updateList);
router.del ('/api/v1/mail/:domain/lists/:name', token, authorizeMailManager, routes.mail.delList);
router.get ('/api/v1/mail/:domain/lists', token, authorizeMailManager, routes.mail.listMailingListsByDomain);
router.post('/api/v1/mail/:domain/lists', json, token, authorizeMailManager, routes.mail.addMailingList);
router.get ('/api/v1/mail/:domain/lists/:name', token, authorizeMailManager, routes.mail.getMailingList);
router.post('/api/v1/mail/:domain/lists/:name', json, token, authorizeMailManager, routes.mail.updateMailingList);
router.del ('/api/v1/mail/:domain/lists/:name', token, authorizeMailManager, routes.mail.delMailingList);
// domain routes
router.post('/api/v1/domains', json, token, authorizeAdmin, routes.domains.add);