|
@@ -20,16 +20,29 @@ $api->version('v1', [
|
|
$api->get('getBehaviorByIdentify', 'BehaviorController@getBehaviorByIdentify');
|
|
$api->get('getBehaviorByIdentify', 'BehaviorController@getBehaviorByIdentify');
|
|
//登录+验签
|
|
//登录+验签
|
|
$api->group(['middleware' => ['chxq_jwt_auth']], function ($api) {
|
|
$api->group(['middleware' => ['chxq_jwt_auth']], function ($api) {
|
|
|
|
+ //发布内容
|
|
$api->post('post', 'PostController@create');
|
|
$api->post('post', 'PostController@create');
|
|
|
|
+ //内容列表
|
|
$api->get('post', 'PostController@index');
|
|
$api->get('post', 'PostController@index');
|
|
|
|
+ //视频列表
|
|
|
|
+ $api->get('post/video', 'PostController@video');
|
|
|
|
+ //内容详情
|
|
$api->get('post/detail', 'PostController@detail');
|
|
$api->get('post/detail', 'PostController@detail');
|
|
|
|
+ //推荐内容
|
|
$api->get('post/suggest', 'PostController@suggestPost');
|
|
$api->get('post/suggest', 'PostController@suggestPost');
|
|
|
|
+ //评价&回复
|
|
$api->post('post/comment', 'PostController@comment');
|
|
$api->post('post/comment', 'PostController@comment');
|
|
|
|
+ //评价列表
|
|
$api->get('post/comment', 'PostController@commentList');
|
|
$api->get('post/comment', 'PostController@commentList');
|
|
|
|
+ //回复列表
|
|
$api->get('post/reply', 'PostController@replyList');
|
|
$api->get('post/reply', 'PostController@replyList');
|
|
|
|
+ //话题分类
|
|
$api->get('topicCategory', 'CategoryController@index');
|
|
$api->get('topicCategory', 'CategoryController@index');
|
|
|
|
+ //获取话题
|
|
$api->get('topicCategory/getTopics', 'CategoryController@getTopics');
|
|
$api->get('topicCategory/getTopics', 'CategoryController@getTopics');
|
|
|
|
+ //话题内容列表
|
|
$api->get('post/topic', 'PostController@topicPost');
|
|
$api->get('post/topic', 'PostController@topicPost');
|
|
|
|
+ //话题详情
|
|
$api->get('topic/detail', 'PostController@topicDetail');
|
|
$api->get('topic/detail', 'PostController@topicDetail');
|
|
//关注推荐话题
|
|
//关注推荐话题
|
|
$api->post('memberFollowTopic', 'MemberFollowTopic@memberFollowTopic');
|
|
$api->post('memberFollowTopic', 'MemberFollowTopic@memberFollowTopic');
|