import { Router } from 'express'; import serialPort from '../services/serialPortService.js'; import serialPortList from '../services/serialPortService.js'; const router = new Router() router.get('/open/:id', serialPort); router.get('/list', serialPortList); export default router