TimetableAPI-Upgrade #64
@ -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 = {
|
module.exports = {
|
||||||
byStartEndCRS,
|
byStartEndCRS,
|
||||||
byCode,
|
byCode,
|
||||||
random,
|
random,
|
||||||
|
testingTiplocArray
|
||||||
};
|
};
|
||||||
|
@ -5,5 +5,6 @@ const pisCtr = require("../controllers/pis.controllers");
|
|||||||
// PIS
|
// PIS
|
||||||
router.get("/byCode/:code", pisCtr.byCode);
|
router.get("/byCode/:code", pisCtr.byCode);
|
||||||
router.get("/byStartEnd/:startCrs/:endCrs", pisCtr.byStartEndCRS);
|
router.get("/byStartEnd/:startCrs/:endCrs", pisCtr.byStartEndCRS);
|
||||||
|
router.get("/test/bytiplocarray/:array", pisCtr.testingTiplocArray);
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
Loading…
Reference in New Issue
Block a user