routes.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. use Hyperf\HttpServer\Router\Router;
  12. use App\Middleware\ApiSign;
  13. use App\Controller\Api\Notify\TencentImController;
  14. use App\Controller\Api\v1\CommonController;
  15. use App\Controller\Api\v1\DemoController;
  16. use App\Controller\Api\v1\LiveController;
  17. /**
  18. * Version 1.0
  19. */
  20. Router::addGroup('/v1', function () {
  21. Router::addRoute(['GET','POST'],'/plantask/autoyeji', [PlantaskController::class, 'autoyeji']);
  22. // 该 Group 下的所有路由都将应用配置的中间件
  23. /*Router::addGroup('/notify', function () {
  24. Router::get('/tencent/im/callback', [TencentImController::class, 'callback']);
  25. });*/
  26. // 需登录
  27. /*Router::addGroup('/auth', function () {
  28. Router::post('/common/config', [CommonController::class, 'config']);
  29. Router::post('/common/get_user_sig', [CommonController::class, 'get_user_sig']);
  30. Router::post('/live/room_list', [LiveController::class, 'room_list']);
  31. Router::post('/live/room_detail', [LiveController::class, 'room_detail']);
  32. Router::post('/live/room_add', [LiveController::class, 'room_add']);
  33. Router::post('/live/room_close', [LiveController::class, 'room_close']);
  34. Router::post('/live/room_join', [LiveController::class, 'room_join']);
  35. Router::post('/live/room_leave', [LiveController::class, 'room_leave']);
  36. Router::post('/live/admin_list', [LiveController::class, 'admin_list']);
  37. Router::post('/live/admin_add', [LiveController::class, 'admin_add']);
  38. Router::post('/live/admin_del', [LiveController::class, 'admin_del']);
  39. Router::post('/live/user_info', [LiveController::class, 'user_info']);
  40. Router::post('/live/user_remove', [LiveController::class, 'user_remove']);
  41. Router::post('/live/shut_up_list', [LiveController::class, 'shut_up_list']);
  42. Router::post('/live/shut_up', [LiveController::class, 'shut_up']);
  43. Router::post('/live/black_list', [LiveController::class, 'black_list']);
  44. Router::post('/live/black_add', [LiveController::class, 'black_add']);
  45. Router::post('/live/black_remove', [LiveController::class, 'black_remove']);
  46. Router::post('/live/audience', [LiveController::class, 'audience']);
  47. Router::post('/live/like', [LiveController::class, 'like']);
  48. Router::post('/live/follow', [LiveController::class, 'follow']);
  49. Router::post('/live/top', [LiveController::class, 'top']);
  50. Router::post('/live/talk_set', [LiveController::class, 'talk_set']);
  51. Router::post('/live/suggest', [LiveController::class, 'suggest']);
  52. Router::post('/live/report', [LiveController::class, 'report']);
  53. Router::post('/live/keyword_filter_list', [LiveController::class, 'keyword_filter_list']);
  54. Router::post('/live/keyword_filter_add', [LiveController::class, 'keyword_filter_add']);
  55. Router::post('/live/keyword_filter_del', [LiveController::class, 'keyword_filter_del']);
  56. }, ['middleware' => [ApiSign::class]]);*/
  57. });