backend/src/routes/live2.routes.ts
Fred Boniface 24bbf5df87 Port routes to TS
Signed-off-by: Fred Boniface <fred@fjla.uk>
2023-09-26 20:39:25 +01:00

10 lines
269 B
TypeScript

const express = require("express");
const router = express.Router();
const ldbCtr = require("../controllers/ldb.controllers");
// PIS
router.get("/station/:id/:type", ldbCtr.getStation);
router.get("/train/:searchType/:id", ldbCtr.getTrain);
module.exports = router;