修改管理后台
This commit is contained in:
@@ -65,6 +65,9 @@ publicRoutes.put('/:id/status', alertController.updateAlert);
|
||||
* 500:
|
||||
* description: 服务器错误
|
||||
*/
|
||||
// 根据养殖场名称搜索预警
|
||||
router.get('/search', verifyToken, alertController.searchAlertsByFarmName);
|
||||
|
||||
router.get('/', (req, res) => {
|
||||
// 从请求头获取token
|
||||
const authHeader = req.headers['authorization'];
|
||||
|
||||
Reference in New Issue
Block a user