|
@@ -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');
|
|
|
|