|
@@ -35,6 +35,11 @@ $api->version('v1', [
|
|
$api->post('refresh', 'AuthController@refresh');
|
|
$api->post('refresh', 'AuthController@refresh');
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ $api->group(['middleware' => 'chxq.shop_check'], function ($api) {
|
|
|
|
+ $api->get('statistics', 'IndexController@index');
|
|
|
|
+ $api->get('statistics/sales', 'IndexController@sales');
|
|
|
|
+ });
|
|
|
|
+
|
|
$api->group(['middleware' => 'jwt.chxq_auth'], function ($api) {
|
|
$api->group(['middleware' => 'jwt.chxq_auth'], function ($api) {
|
|
//新增编辑
|
|
//新增编辑
|
|
$api->post('addShop', 'ShopController@addShop');
|
|
$api->post('addShop', 'ShopController@addShop');
|
|
@@ -53,9 +58,6 @@ $api->version('v1', [
|
|
//公共配置
|
|
//公共配置
|
|
$api->post('configIndex', 'ConfigController@index');
|
|
$api->post('configIndex', 'ConfigController@index');
|
|
|
|
|
|
- $api->group(['middleware'=>'chxq.shop_check'], function($api) {
|
|
|
|
- $api->get('statistics', 'IndexController@index');
|
|
|
|
- $api->get('statistics/sales', 'IndexController@sales');
|
|
|
|
- });
|
|
|
|
|
|
+
|
|
});
|
|
});
|
|
});
|
|
});
|