Add new version of uonetplus start endpoint

This commit is contained in:
Mikołaj Pich 2024-01-10 21:24:34 +01:00
parent 55c6902049
commit 53b126cb8f

View file

@ -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;
module.exports = router;