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 = {
|
||||
byStartEndCRS,
|
||||
byCode,
|
||||
random,
|
||||
testingTiplocArray
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user