TimetableAPI-Upgrade #64

Merged
fred.boniface merged 36 commits from TimetableAPI-Upgrade into main 2024-02-11 15:53:17 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 84791ea93a - Show all commits

View File

@ -47,8 +47,14 @@ async function random(req, res, next) {
}
}
async function testingTiplocArray(req, res, next) {
let array = JSON.parse(req.params.array)
return pis.testingTiplocArray(array)
}
module.exports = {
byStartEndCRS,
byCode,
random,
testingTiplocArray
};

View File

@ -5,5 +5,6 @@ const pisCtr = require("../controllers/pis.controllers");
// PIS
router.get("/byCode/:code", pisCtr.byCode);
router.get("/byStartEnd/:startCrs/:endCrs", pisCtr.byStartEndCRS);
router.get("/test/bytiplocarray/:array", pisCtr.testingTiplocArray);
module.exports = router;