hahn-admin/config/route.php

39 lines
1.0 KiB
PHP
Raw Normal View History

2025-07-03 11:08:32 +08:00
<?php
/**
* This file is part of webman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @link http://www.workerman.net/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use app\controller\IndexController;
use app\controller\PublicController;
use Webman\Route;
//首页
Route::group('/index', function () {
Route::get('/options', [IndexController::class, 'getOptions']);
});
//新闻资讯
Route::group('/article', function () {
Route::get('/list', [PublicController::class, 'articleList']);
Route::get('/detail', [PublicController::class, 'articleDetail']);
});
//畅销产品
Route::group("/product", function () {
Route::get("/cate", [IndexController::class, 'getProductCate']);
Route::get("/list", [IndexController::class, 'getProductList']);
});