route.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CatchAdmin [Just Like ~ ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
  8. // +----------------------------------------------------------------------
  9. // | Author: JaguarJack [ njphper@gmail.com ]
  10. // +----------------------------------------------------------------------
  11. // you should use `$router`
  12. $router->group(function () use ($router){
  13. $router->post('AlarmRecords/handleAlarm', '\catchAdmin\alarm\controller\AlarmRecords@handleAlarm');
  14. // alarmRecords路由
  15. $router->resource('AlarmRecords', '\catchAdmin\alarm\controller\AlarmRecords');
  16. // alarmReport路由
  17. $router->resource('AlarmReport', '\catchAdmin\alarm\controller\AlarmReport');
  18. //根据微信用户获取该设备告警
  19. $router->post('AlarmRecords/getAlarmRecordsbyId','\catchAdmin\alarm\controller\AlarmRecords@getAlarmRecordsbyId');
  20. //微信获取告警详情
  21. $router->post('AlarmRecords/getAlarmDetail','\catchAdmin\alarm\controller\AlarmRecords@getAlarmDetail');
  22. // controlManage路由
  23. $router->resource('controlManage', '\catchAdmin\alarm\controller\ControlManage');
  24. // bwList路由
  25. $router->resource('bwList', '\catchAdmin\alarm\controller\BwList');
  26. // rfidWithBw路由
  27. $router->resource('rfidWithBw', '\catchAdmin\alarm\controller\RfidWithBw');
  28. // controlAalrm路由
  29. $router->resource('controlAlarm', '\catchAdmin\alarm\controller\ControlAlarm');
  30. $router->get('totalAlarmAddress', '\catchAdmin\alarm\controller\ControlAlarm@totalAlarmAddress');
  31. })->middleware('auth');
  32. $router->group('alarmReport', function () use ($router){
  33. $router->get('getDetail/:id', '\catchAdmin\alarm\controller\AlarmReport@detail');
  34. $router->get('totalGrowth', '\catchAdmin\alarm\controller\AlarmReport@totalGrowth');
  35. })->middleware('auth');