'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller } = app; //串口接口 router.post('/api/v1/openCom', controller.message.openCom) router.post('/api/v1/closeCom', controller.message.closeCom) router.post('/api/v1/message', controller.message.index) };