first commit
This commit is contained in:
9
server/router/mqtt_router.js
Normal file
9
server/router/mqtt_router.js
Normal file
@ -0,0 +1,9 @@
|
||||
const express = require('express')
|
||||
const router = express.Router()
|
||||
const mqttHandler = require('../router_handler/mqtt_router_handle')
|
||||
|
||||
router.post('/getSwitchStat', mqttHandler.getSwitchStat)
|
||||
router.get('/getSwitchList', mqttHandler.getSwitchList)
|
||||
|
||||
router.get('/SetSwitch', mqttHandler.SetSwitch)
|
||||
module.exports = router
|
Reference in New Issue
Block a user