From cc7ddddd2f130d1ab3487c0b1713897cb339dc5d Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sat, 27 Oct 2012 16:41:17 +0100 Subject: [PATCH] redirect from frontend to frontend/ --- src/node/hooks/express/tests.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node/hooks/express/tests.js b/src/node/hooks/express/tests.js index 66fa14247..ebc6d7f82 100644 --- a/src/node/hooks/express/tests.js +++ b/src/node/hooks/express/tests.js @@ -13,4 +13,8 @@ exports.expressCreateServer = function (hook_name, args, cb) { res.sendfile(filePath); }); + + args.app.get('/tests/frontend', function (req, res) { + res.redirect('/tests/frontend/'); + }); } \ No newline at end of file