修改政府端前端,银行端小程序和后端接口
This commit is contained in:
18
government-backend/routes/smartHost.js
Normal file
18
government-backend/routes/smartHost.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const smartHostController = require('../controllers/smartHostController');
|
||||
const auth = require('../middleware/auth');
|
||||
|
||||
// 获取智能主机列表
|
||||
router.get('/', auth, smartHostController.getSmartHosts);
|
||||
|
||||
// 新增智能主机
|
||||
router.post('/', auth, smartHostController.createSmartHost);
|
||||
|
||||
// 编辑智能主机
|
||||
router.put('/:id', auth, smartHostController.updateSmartHost);
|
||||
|
||||
// 删除智能主机
|
||||
router.delete('/:id', auth, smartHostController.deleteSmartHost);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user