group(function () use ($router){ $router->post('AlarmRecords/handleAlarm', '\catchAdmin\alarm\controller\AlarmRecords@handleAlarm'); // alarmRecords路由 $router->resource('AlarmRecords', '\catchAdmin\alarm\controller\AlarmRecords'); // alarmReport路由 $router->resource('AlarmReport', '\catchAdmin\alarm\controller\AlarmReport'); //根据微信用户获取该设备告警 $router->post('AlarmRecords/getAlarmRecordsbyId','\catchAdmin\alarm\controller\AlarmRecords@getAlarmRecordsbyId'); //微信获取告警详情 $router->post('AlarmRecords/getAlarmDetail','\catchAdmin\alarm\controller\AlarmRecords@getAlarmDetail'); //解除警报 })->middleware('auth'); $router->group('alarmReport', function () use ($router){ $router->get('getDetail/:id', '\catchAdmin\alarm\controller\AlarmReport@detail'); $router->get('totalGrowth', '\catchAdmin\alarm\controller\AlarmReport@totalGrowth'); })->middleware('auth');