| xqd
@@ -66,8 +66,6 @@ $api->version('v1', ['namespace' => 'App\Http\Controllers\V1'], function ($api)
|
|
|
$api->group(['prefix' => 'settings'], function ($api) {
|
|
|
$api->get('notice_policy', 'SettingsController@noticePolicy'); //公告|政策
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
/*
|
|
|
|--------------------------------------------------------------
|
|
|
| 需要 token 验证的接口 'middleware' => ['api.auth'] 读取的 config/api.php 'auth' => ['jwt' => 'Dingo\Api\Auth\Provider\JWT'], 所以 在 Kernel.php 找不到这个中间件
|
| xqd
@@ -111,6 +109,7 @@ $api->version('v1', ['namespace' => 'App\Http\Controllers\V1'], function ($api)
|
|
|
$api->get('add_collect', 'ProductController@addCollect'); //添加收藏
|
|
|
$api->get('add_like', 'ProductController@addLike'); //喜欢产品
|
|
|
$api->get('collect_list', 'ProductController@collectList'); //收藏列表
|
|
|
+ $api->get('report_list', 'ProductController@reportList'); //举报列表
|
|
|
$api->post('report', 'ProductController@report'); //举报图片
|
|
|
});
|
|
|
|