From 4979ccfc565f4a0f9f02963f312fcfe41e4fcda3 Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Wed, 24 Jul 2019 11:30:24 +0200 Subject: [PATCH] redirect /test_alert --- server/routing.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/routing.js b/server/routing.js index b77ab37..4c81afe 100644 --- a/server/routing.js +++ b/server/routing.js @@ -131,6 +131,7 @@ module.exports = function(app, sql, app_cfg, passport, auth, udp) { app.post('/test_alert', auth.ensureAdmin, function(req, res) { udp.send_message(req.body.test_alert); + res.redirect('/test_alert'); }); // get /edit_users