石墨消解仪后端用nodejs编写,与嵌入式端交互和前端交互均用ws
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
320 B

2 years ago
  1. const Router = require('koa-router')
  2. const router = new Router({ prefix: '/terminal' })
  3. const { auth } = require('../middleware/auth.middleware')
  4. const {
  5. updateTerminalSwitchState,
  6. } = require('../controller/terminal.controller')
  7. router.post('/updateState', auth, updateTerminalSwitchState)
  8. module.exports = router