You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
349 B
11 lines
349 B
'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)
|
|
};
|
|
|