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. // device路由
  14. $router->resource('device', '\catchAdmin\device\controller\Device');
  15. // station路由
  16. $router->get('station/getdeviceListByStation','\catchAdmin\device\controller\Station@getdeviceListByStation');
  17. $router->get('station/getAllList','\catchAdmin\device\controller\Station@getAllList');
  18. //导入基站
  19. $router->post('station/importStation', '\catchAdmin\device\controller\Station@importStation');
  20. $router->resource('station', '\catchAdmin\device\controller\Station');
  21. // station_photo路由
  22. $router->resource('station_photo', '\catchAdmin\device\controller\StationPhoto');
  23. //获取微信用户的设备
  24. $router->post('device/getdevicebyid','\catchAdmin\device\controller\Device@getDeviceById');
  25. //微信修改用户名称
  26. $router->post('device/editname','\catchAdmin\device\controller\Device@editName');
  27. //微信用户绑定设备
  28. $router->post('device/bindingdevie','\catchAdmin\device\controller\Device@bindingDevie');
  29. //微信解除设备
  30. $router->post('device/relievedevice','\catchAdmin\device\controller\Device@relieveDevice');
  31. //导出设备
  32. $router->post('device/export_device','\catchAdmin\device\controller\Device@export_device');
  33. //导出基站
  34. $router->post('station/export_station','\catchAdmin\device\controller\Station@export_station');
  35. //导入设备
  36. $router->post('import_device', '\catchAdmin\device\controller\Device@import_device');
  37. })->middleware('auth');