feat(lstv2 move): moved lstv2 into this app to keep them combined and easier to maintain
This commit is contained in:
15
lstV2/server/services/ocmeServer/routes/getLanes.ts
Normal file
15
lstV2/server/services/ocmeServer/routes/getLanes.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user