16 lines
594 B
TypeScript
16 lines
594 B
TypeScript
// import {Router} from 'express'
|
|
// import { runQuery } from '../utils/sql/config/sqlConfig.js'
|
|
// import { getLanes } from '../utils/sql/querys/getLanes.js'
|
|
|
|
// const router = Router()
|
|
|
|
// router.get('/getLanes', async (req,res)=>{
|
|
// // get lanes
|
|
// const lanes = await runQuery(getLanes, 'Getting current ocme lanes linked')
|
|
|
|
// const laneDescriptions = lanes.map(item => item.alpla_laneDescription);
|
|
// res.status(200).json({success: true,message: `All current lanes from the ocme system.`, totalLanes: lanes.length,data: laneDescriptions})
|
|
// })
|
|
|
|
// export default router
|