|
@@ -22,8 +22,13 @@ $api->version('v1', [
|
|
|
$api->get('getPlayUrlByVideoId', 'AliYunVodController@getPlayUrlByVideoId');
|
|
|
|
|
|
$api->get('getAllBehavior', 'BehaviorController@getAllBehavior');
|
|
|
-
|
|
|
+
|
|
|
$api->group(['middleware' => ['chxq_jwt_auth']], function ($api) {
|
|
|
+
|
|
|
+ $api->get('post/detail', 'PostController@detail');
|
|
|
+ });
|
|
|
+
|
|
|
+ $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
|
|
|
|
|
|
$api->post('post', 'PostController@create');
|
|
|
|
|
@@ -32,8 +37,6 @@ $api->version('v1', [
|
|
|
$api->get('post', 'PostController@index');
|
|
|
|
|
|
$api->get('post/video', 'PostController@video');
|
|
|
-
|
|
|
- $api->get('post/detail', 'PostController@detail');
|
|
|
|
|
|
$api->get('post/suggest', 'PostController@suggestPost');
|
|
|
|
|
@@ -69,18 +72,21 @@ $api->version('v1', [
|
|
|
|
|
|
$api->get('postCollect', 'PostCollectController@index');
|
|
|
|
|
|
+
|
|
|
+ $api->get('post/memberPostStatistics', 'PostController@memberPostStatistics');
|
|
|
+
|
|
|
+ $api->get('feed', 'FeedController@index');
|
|
|
+ });
|
|
|
+
|
|
|
+ $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
|
|
|
|
|
|
$api->get('excellentResidents', 'BeanDetailController@excellentResidents');
|
|
|
|
|
|
$api->get('rankingList', 'BeanDetailController@rankingList');
|
|
|
|
|
|
$api->get('starHome', 'BeanDetailController@starHome');
|
|
|
-
|
|
|
-
|
|
|
- $api->get('post/memberPostStatistics', 'PostController@memberPostStatistics');
|
|
|
-
|
|
|
- $api->get('feed', 'FeedController@index');
|
|
|
});
|
|
|
+
|
|
|
|
|
|
$api->get('starDetail', 'BeanDetailController@starDetail');
|
|
|
|