mail: remove queue proxy
this has never worked well
This commit is contained in:
@@ -65,10 +65,6 @@ async function proxyAndRestart(req, res, next) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function queueProxy(req, res, next) {
|
|
||||||
proxyToMailContainer(6000, req.path.replace('/', '/queue/'), req, res, next);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getLocation(req, res, next) {
|
async function getLocation(req, res, next) {
|
||||||
const [error, result] = await safe(mailServer.getLocation());
|
const [error, result] = await safe(mailServer.getLocation());
|
||||||
if (error) return next(BoxError.toHttpError(error));
|
if (error) return next(BoxError.toHttpError(error));
|
||||||
@@ -91,7 +87,6 @@ async function setLocation(req, res, next) {
|
|||||||
export default {
|
export default {
|
||||||
proxy,
|
proxy,
|
||||||
proxyAndRestart,
|
proxyAndRestart,
|
||||||
queueProxy,
|
|
||||||
|
|
||||||
setLocation,
|
setLocation,
|
||||||
getLocation
|
getLocation
|
||||||
|
|||||||
@@ -404,8 +404,6 @@ async function initializeExpressSync() {
|
|||||||
router.post('/api/v1/mailserver/virtual_all_mail', token, authorizeAdmin, routes.mailserver.proxyAndRestart);
|
router.post('/api/v1/mailserver/virtual_all_mail', token, authorizeAdmin, routes.mailserver.proxyAndRestart);
|
||||||
router.get ('/api/v1/mailserver/usage', token, authorizeMailManager, routes.mailserver.proxy);
|
router.get ('/api/v1/mailserver/usage', token, authorizeMailManager, routes.mailserver.proxy);
|
||||||
|
|
||||||
router.use ('/api/v1/mailserver/queue', token, authorizeAdmin, routes.mailserver.queueProxy);
|
|
||||||
|
|
||||||
router.get ('/api/v1/mail/:domain', token, authorizeMailManager, routes.mail.getDomain);
|
router.get ('/api/v1/mail/:domain', token, authorizeMailManager, routes.mail.getDomain);
|
||||||
router.get ('/api/v1/mail', token, authorizeMailManager, routes.mail.listDomains);
|
router.get ('/api/v1/mail', token, authorizeMailManager, routes.mail.listDomains);
|
||||||
router.post('/api/v1/mail/:domain/enable', json, token, authorizeAdmin, routes.mail.setMailEnabled);
|
router.post('/api/v1/mail/:domain/enable', json, token, authorizeAdmin, routes.mail.setMailEnabled);
|
||||||
|
|||||||
Reference in New Issue
Block a user