From 53b126cb8fcbb38d898326176adf27d964432b12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Wed, 10 Jan 2024 21:24:34 +0100 Subject: [PATCH] Add new version of uonetplus start endpoint --- src/routes/uonetplus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/uonetplus.js b/src/routes/uonetplus.js index f883d04..0245d1c 100644 --- a/src/routes/uonetplus.js +++ b/src/routes/uonetplus.js @@ -149,7 +149,7 @@ router.all(/^\/([a-z0-9]+)(?:\/LoginEndpoint\.aspx|\/)?$/i, (req, res) => { res.redirect(protocol(req) + "://" + req.get('host').replace("uonetplus", "cufs") + "/powiatwulkanowy/Account/LogOn"); }); -router.get("/powiatwulkanowy/Start.mvc/Index", (req, res) => { +router.get(["/powiatwulkanowy/Start.mvc", "/powiatwulkanowy/Start.mvc/Index"], (req, res) => { res.render("homepage", { title: "Uonet+", uonetplusOpiekun: protocol(req) + "://" + req.get('host').replace("uonetplus", "uonetplus-opiekun"), @@ -157,4 +157,4 @@ router.get("/powiatwulkanowy/Start.mvc/Index", (req, res) => { }); }); -module.exports = router; \ No newline at end of file +module.exports = router;