| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- // +----------------------------------------------------------------------
- // | [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2018-2020 rights reserved.
- // +----------------------------------------------------------------------
- // | Author: TABLE ME
- // +----------------------------------------------------------------------
- // | Date: 2020-09-05 09:21
- // +----------------------------------------------------------------------
- use app\api\middleware\AllowOriginMiddleware;
- use app\api\middleware\SeretKeyMiddleware;
- use app\api\middleware\UserMiddleware;
- use think\facade\Route;
- Route::group('product', function () {
- //分类列表
- Route::rule('categoryList', 'Product/categoryList');
- //分类树
- Route::rule('categoryTree', 'Product/categoryTree');
- //品牌列表
- Route::rule('brandList', 'Product/brandList');
- //商品列表
- Route::rule('productList', 'Product/productList');
- //商品详情
- Route::rule('productDetail', 'Product/productDetail');
- //评价列表
- Route::rule('replyList', 'Product/replyList');
- //添加评价
- Route::rule('addReply', 'Product/addReply');
- })->middleware([
- AllowOriginMiddleware::class,
- SeretKeyMiddleware::class,
- UserMiddleware::class,
- ]);
|