web.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. declare(strict_types=1);
  3. use App\Controller\WebController;
  4. use Hyperf\HttpServer\Router\Router;
  5. use App\Middleware\Auth\WebMiddleware;
  6. Router::addGroup(
  7. '/web', function () {
  8. Router::get('/getWebsiteCategory', [WebController::class, 'getWebsiteCategory']);
  9. Router::get('/getWebsiteDistrit', [WebController::class, 'getWebsiteDistrit']);
  10. Router::get('/getWebsiteAdvertisement', [WebController::class, 'getWebsiteAdvertisement']);
  11. Router::get('/selectWebsiteDepartment', [WebController::class, 'selectWebsiteDepartment']);
  12. Router::get('/selectWebsiteArea', [WebController::class, 'selectWebsiteArea']);
  13. Router::get('/getWebsiteArticlett', [WebController::class, 'getWebsiteArticlett']);
  14. Router::get('/getWebsiteModelArticles', [WebController::class, 'getWebsiteModelArticles']);
  15. Router::get('/getWebsiteModelCategory', [WebController::class, 'getWebsiteModelCategory']);
  16. Router::get('/getWebsiteArticleList', [WebController::class, 'getWebsiteArticleList']);
  17. Router::get('/selectWebsiteArticleInfo', [WebController::class, 'selectWebsiteArticleInfo']);
  18. Router::get('/selectWebsiteLinks', [WebController::class, 'selectWebsiteLinks']);
  19. // 获取网站底部基础信息
  20. Router::get('/getWebsiteFootInfo', [WebController::class, 'getWebsiteFootInfo']);
  21. // 获取网站底部导航
  22. Router::get('/getWebsiteFooterCategory', [WebController::class, 'getWebsiteFooterCategory']);
  23. // 获取网站底部导航列表
  24. Router::get('/getWebsiteFooterCategoryList', [WebController::class, 'getWebsiteFooterCategoryList']);
  25. // 获取网站底部导航内容
  26. Router::get('/getWebsiteFooterCategoryInfo', [WebController::class, 'getWebsiteFooterCategoryInfo']);
  27. // 搜索网站二级导航
  28. Router::get('/selectWebsiteCategory', [WebController::class, 'selectWebsiteCategory']);
  29. // 搜索网站二级导航-seo列表页
  30. Router::get('/getWebsiteCategoryHead', [WebController::class, 'getWebsiteCategoryHead']);
  31. },
  32. ['middleware' => [WebMiddleware::class]]
  33. );