|
@@ -27,6 +27,9 @@ $api->version('v1', [
|
|
|
$api->group(['middleware' => ['chxq_sign']], function ($api) {
|
|
|
//查询帖子内容详情
|
|
|
$api->get('post/info', 'PostController@find');
|
|
|
+
|
|
|
+ //下载量
|
|
|
+ $api->put('download_count', 'PostController@downloadCount');
|
|
|
});
|
|
|
//登录
|
|
|
$api->group(['middleware' => ['chxq_jwt_auth']], function ($api) {
|
|
@@ -67,8 +70,7 @@ $api->version('v1', [
|
|
|
$api->get('post/checkImage', 'PostController@checkImage');
|
|
|
|
|
|
//登录+验签
|
|
|
-// $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
|
|
|
- $api->group(['middleware' => ['chxq_jwt_auth']], function ($api) {
|
|
|
+ $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
|
|
|
//发布内容
|
|
|
$api->post('post', 'PostController@create');
|
|
|
//删除内容
|