route.php 1.4 KB

12345678910111213141516171819202122232425
  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. // preview路由
  14. $router->get('preview/getDeviceAddressList', '\catchAdmin\screen\controller\Preview@getDeviceAddressList');
  15. $router->get('preview/monthAlarmData', '\catchAdmin\screen\controller\Preview@deviceMonthAlarmData');
  16. //围栏实时告警数据
  17. $router->get('preview/realTimeAlarmData', '\catchAdmin\screen\controller\Preview@realTimeAlarmData');
  18. $router->get('preview/getSosScrollAlarmData', '\catchAdmin\screen\controller\Preview@getSosScrollAlarmData');
  19. $router->get('preview/getSocketStationTotal', '\catchAdmin\screen\controller\Preview@getSocketStationTotal');
  20. $router->get('preview/getSchoolBadgeTotal', '\catchAdmin\screen\controller\Preview@getSchoolBadgeTotal');
  21. })->middleware('auth');