Add supportConfig in database

This commit is contained in:
Girish Ramakrishnan
2020-02-05 14:30:56 -08:00
parent 2f6933102c
commit 5145ea3530
6 changed files with 80 additions and 17 deletions

View File

@@ -281,9 +281,9 @@ function initializeExpressSync() {
router.del ('/api/v1/mail/:domain/lists/:name', mailScope, routes.mail.removeList);
// support
router.post('/api/v1/support/ticket', cloudronScope, routes.support.createTicket);
router.post('/api/v1/support/ticket', cloudronScope, routes.support.canCreateTicket, routes.support.createTicket);
router.get ('/api/v1/support/remote_support', cloudronScope, routes.support.getRemoteSupport);
router.post('/api/v1/support/remote_support', cloudronScope, routes.support.enableRemoteSupport);
router.post('/api/v1/support/remote_support', cloudronScope, routes.support.canEnableRemoteSupport, routes.support.enableRemoteSupport);
// domain routes
router.post('/api/v1/domains', domainsManageScope, routes.domains.add);