|
@@ -22,8 +22,13 @@ $api->version('v1', [
|
|
$api->get('getPlayUrlByVideoId', 'AliYunVodController@getPlayUrlByVideoId');
|
|
$api->get('getPlayUrlByVideoId', 'AliYunVodController@getPlayUrlByVideoId');
|
|
//获取所有行为
|
|
//获取所有行为
|
|
$api->get('getAllBehavior', 'BehaviorController@getAllBehavior');
|
|
$api->get('getAllBehavior', 'BehaviorController@getAllBehavior');
|
|
- //登录+验签
|
|
|
|
|
|
+ //登录
|
|
$api->group(['middleware' => ['chxq_jwt_auth']], function ($api) {
|
|
$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');
|
|
$api->post('post', 'PostController@create');
|
|
//个人中心内容
|
|
//个人中心内容
|
|
@@ -32,8 +37,6 @@ $api->version('v1', [
|
|
$api->get('post', 'PostController@index');
|
|
$api->get('post', 'PostController@index');
|
|
//视频列表
|
|
//视频列表
|
|
$api->get('post/video', 'PostController@video');
|
|
$api->get('post/video', 'PostController@video');
|
|
- //内容详情
|
|
|
|
- $api->get('post/detail', 'PostController@detail');
|
|
|
|
//推荐内容
|
|
//推荐内容
|
|
$api->get('post/suggest', 'PostController@suggestPost');
|
|
$api->get('post/suggest', 'PostController@suggestPost');
|
|
//评价&回复
|
|
//评价&回复
|
|
@@ -69,18 +72,21 @@ $api->version('v1', [
|
|
//收藏列表
|
|
//收藏列表
|
|
$api->get('postCollect', 'PostCollectController@index');
|
|
$api->get('postCollect', 'PostCollectController@index');
|
|
|
|
|
|
|
|
+ //用户发布数,收藏数,转发数
|
|
|
|
+ $api->get('post/memberPostStatistics', 'PostController@memberPostStatistics');
|
|
|
|
+ //关注feed流
|
|
|
|
+ $api->get('feed', 'FeedController@index');
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
|
|
//优秀居民信息获取
|
|
//优秀居民信息获取
|
|
$api->get('excellentResidents', 'BeanDetailController@excellentResidents');
|
|
$api->get('excellentResidents', 'BeanDetailController@excellentResidents');
|
|
//排行榜
|
|
//排行榜
|
|
$api->get('rankingList', 'BeanDetailController@rankingList');
|
|
$api->get('rankingList', 'BeanDetailController@rankingList');
|
|
//星球首页
|
|
//星球首页
|
|
$api->get('starHome', 'BeanDetailController@starHome');
|
|
$api->get('starHome', 'BeanDetailController@starHome');
|
|
-
|
|
|
|
- //用户发布数,收藏数,转发数
|
|
|
|
- $api->get('post/memberPostStatistics', 'PostController@memberPostStatistics');
|
|
|
|
- //关注feed流
|
|
|
|
- $api->get('feed', 'FeedController@index');
|
|
|
|
});
|
|
});
|
|
|
|
+
|
|
//分享/邀请首页
|
|
//分享/邀请首页
|
|
$api->get('starDetail', 'BeanDetailController@starDetail');
|
|
$api->get('starDetail', 'BeanDetailController@starDetail');
|
|
|
|
|