/api/v2/ref now available

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface
2023-06-17 23:04:42 +01:00
parent a04570c9e4
commit 34d00ad16f
6 changed files with 69 additions and 17 deletions

View File

@@ -22,9 +22,7 @@ router.get('/live/train/:searchType/:id');
// Timetable
router.get('/timetable/train/:date/:searchType/:id');
// Ref
router.get('/reasonCode/:code');
router.get('/locationCode/:searchType/:id');
// User
router.post('/user');

View File

@@ -4,6 +4,6 @@ const pisCtr = require('../controllers/pis.controllers');
// PIS
router.get('/byCode/:code', pisCtr.byCode);
router.get('/:startCrs/:endCrs', pisCtr.byStartEndCRS);
router.get('/byStartEnd/:startCrs/:endCrs', pisCtr.byStartEndCRS);
module.exports = router;

View File

@@ -0,0 +1,9 @@
const express = require('express');
const router = express.Router();
const refCtr = require('../controllers/ref.controllers');
// Ref
router.get('/reasonCode/:code', refCtr.getReasonCode);
router.get('/locationCode/:searchType/:id', refCtr.getLocationReference);
module.exports = router;