main
parent
f74d79389d
commit
dd893f21f9
2 changed files with 22 additions and 7 deletions
@ -1,8 +1,10 @@ |
|||||||
import { Router } from 'express'; |
import { Router } from 'express'; |
||||||
import serialPort from '../services/serialPortService.js'; |
import serialPort from '../services/serialPortService.js'; |
||||||
|
import serialPortList from '../services/serialPortService.js'; |
||||||
|
|
||||||
const router = new Router() |
const router = new Router() |
||||||
|
|
||||||
router.get('/:id', serialPort); |
router.get('/open/:id', serialPort); |
||||||
|
router.get('/list', serialPortList); |
||||||
|
|
||||||
export default router |
export default router |
Loading…
Reference in new issue