Add a way to re-sync mail DNS records

Also, make restore resync the admin domain record which gets messed
up by the dns setup
This commit is contained in:
Girish Ramakrishnan
2018-03-08 17:26:07 -08:00
parent f284245e16
commit 6bc5add023
4 changed files with 44 additions and 5 deletions

View File

@@ -215,6 +215,7 @@ function initializeExpressSync() {
// email routes
router.get ('/api/v1/mail/:domain', settingsScope, routes.user.requireAdmin, routes.mail.get);
router.post('/api/v1/mail/:domain', settingsScope, routes.user.requireAdmin, routes.mail.update);
router.post('/api/v1/mail', settingsScope, routes.user.requireAdmin, routes.mail.add);
router.del ('/api/v1/mail/:domain', settingsScope, routes.user.requireAdmin, routes.user.verifyPassword, routes.mail.del);
router.get ('/api/v1/mail/:domain/status', settingsScope, routes.user.requireAdmin, routes.mail.getStatus);