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;