| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- declare(strict_types=1);
- use think\facade\Route;
- use app\api\middleware\AllowCrossDomain;
- // 定义 API 路由组
- Route::group('user', function () {
-
- Route::rule('login','user/login','POST');
- Route::rule('userinfo','user/userinfo','GET|POST');
- Route::rule('logout','user/logout','GET|POST');
- //平台
- Route::rule('platform','shops/getPlatform','POST');
- //店铺
- Route::rule('shops','shops/getShop','POST');
- //规格
- Route::rule('specs','shops/getSpec','POST');
- //添加记录
- Route::rule('create','shops/create','POST');
- //发货记录
- Route::rule('delivery','shops/delivery','POST');
- //出入库
- Route::rule('stockList','inventory/stockList','POST');
- //库存记录
- Route::rule('stocklog','inventory/stocklog','POST');
- })->middleware(AllowCrossDomain::class);
|