Add route for testing #47

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-11-09 20:42:19 +00:00
parent 725dfb86e2
commit 84791ea93a
2 changed files with 7 additions and 0 deletions

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;