Fix support tests

This commit is contained in:
Girish Ramakrishnan
2023-12-03 20:00:57 +01:00
parent 344578006c
commit 8e28d2a5aa
3 changed files with 2 additions and 55 deletions
+2 -2
View File
@@ -368,9 +368,9 @@ async function initializeExpressSync() {
router.del ('/api/v1/mail/:domain/lists/:name', token, authorizeMailManager, routes.mail.delList);
// support routes
router.post('/api/v1/support/ticket', json, token, authorizeOwner, routes.support.canCreateTicket, routes.support.createTicket);
router.post('/api/v1/support/ticket', json, token, authorizeOwner, routes.support.createTicket);
router.get ('/api/v1/support/remote_support', token, authorizeOwner, routes.support.getRemoteSupport);
router.post('/api/v1/support/remote_support', json, token, authorizeOwner, routes.support.canEnableRemoteSupport, routes.support.enableRemoteSupport);
router.post('/api/v1/support/remote_support', json, token, authorizeOwner, routes.support.enableRemoteSupport);
// domain routes
router.post('/api/v1/domains', json, token, authorizeAdmin, routes.domains.add);