| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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('stock','inventory/stock','POST');
- //库存记录
- Route::rule('stocklog','inventory/stocklog','POST');
- //首页数据
- Route::rule('index','inventory/index','POST');
- //库存统计
- Route::rule('statistics','inventory/statistics','POST');
- })->middleware(AllowCrossDomain::class);
|