123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <?php
- $api = app('Dingo\Api\Routing\Router');
- $api->version('v1', [
- 'namespace' => 'App\Http\Controllers\V1',
- ], function ($api) {
-
- $api->get('getBehaviorByIdentify', 'BehaviorController@getBehaviorByIdentify');
- $api->get('getVodUploadAuth', 'AliYunVodController@getVodUploadAuth');
- $api->get('vod/upload/image', 'AliYunVodController@getImgUploadAuth');
- $api->get('getPlayUrlByVideoId', 'AliYunVodController@getPlayUrlByVideoId');
-
- $api->put('download_count', 'PostController@downloadCount');
-
- $api->get('getAllBehavior', 'BehaviorController@getAllBehavior');
- $api->group(['middleware' => ['chxq_sign']], function ($api) {
-
- $api->get('post/info', 'PostController@find');
- });
-
- $api->group(['middleware' => ['chxq_jwt_auth']], function ($api) {
-
- $api->get('musicList', 'MusicListController@index');
-
- $api->get('category/list', 'MusicListController@categoryList');
-
- $api->get('music', 'MusicListController@postMusicList');
-
- $api->post('music/upload', 'MusicListController@addMusic');
- });
-
- $api->get('post', 'PostController@index');
-
- $api->get('post/video', 'PostController@video');
-
- $api->get('post/suggest', 'PostController@suggestPost');
-
- $api->get('post/detail', 'PostController@detail');
-
- $api->get('post/topic', 'PostController@topicPost');
-
- $api->get('topic/detail', 'PostController@topicDetail');
-
- $api->get('post/comment', 'PostController@commentList');
-
- $api->get('post/reply', 'PostController@replyList');
-
- $api->get('post/video/group', 'PostController@getPostVideo');
-
- $api->get('topic/group', 'PostController@getTopic');
-
- $api->get('post/category', 'CategoryController@suggest');
-
- $api->get('post/checkImage', 'PostController@checkImage');
-
-
- $api->get('circle/valid', 'CircleController@valid');
-
- $api->get('circle', 'CircleController@index');
-
- $api->get('circle/question', 'CircleController@getQuestion');
-
- $api->get('circle/articles', 'CircleController@articleList');
-
- $api->get('circle/messages', 'CircleController@messageList');
-
- $api->get('circle/comments', 'CircleController@commentList');
-
- $api->get('circle/replys', 'CircleController@replyList');
-
- $api->get('circle/pictures', 'CircleController@pictureList');
-
- $api->get('circle/members', 'CircleController@memberList');
-
- $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
-
- $api->post('post', 'PostController@create');
-
- $api->delete('post', 'PostController@delete');
-
- $api->get('post/my', 'PostController@myPost');
-
- $api->post('post/comment', 'PostController@comment');
-
- $api->delete('post/comment', 'PostController@commentDelete');
-
- $api->get('topicCategory', 'CategoryController@index');
-
- $api->get('topicCategory/getTopics', 'CategoryController@getTopics');
-
- $api->get('topic', 'PostController@topicList');
-
- $api->post('memberFollowTopic', 'MemberFollowTopic@memberFollowTopic');
-
- $api->post('memberFollowTopic/follow', 'MemberFollowTopic@followTopic');
-
- $api->delete('memberFollowTopic/cancel', 'MemberFollowTopic@cancelFollowTopic');
-
- $api->get('memberFollowTopic/getMemberTopic', 'MemberFollowTopic@getMemberTopics');
-
- $api->get('memberFollowTopic', 'MemberFollowTopic@index');
-
- $api->get('postCollect', 'PostCollectController@index');
-
- $api->get('post/memberPostStatistics', 'PostController@memberPostStatistics');
-
- $api->get('feed', 'FeedController@index');
-
- $api->get('excellentResidents', 'BeanDetailController@excellentResidents');
-
- $api->get('rankingList', 'BeanDetailController@rankingList');
-
- $api->get('starHome', 'BeanDetailController@starHome');
-
- $api->post('circle/join', 'CircleController@joinCircle');
-
- $api->delete('circle/join', 'CircleController@exitCircle');
-
- $api->post('circle/message', 'CircleController@messageCreate');
-
- $api->post('circle/comment', 'CircleController@comment');
-
- $api->post('circle/message/action', 'CircleController@messageAction');
-
- $api->delete('circle/message', 'CircleController@deleteMessage');
-
- $api->delete('circle/comment', 'CircleController@deleteComment');
-
- $api->delete('circle/picture', 'CircleController@deletePicture');
-
- $api->post('circle/picture', 'CircleController@createPictures');
- });
-
- $api->get('starDetail', 'BeanDetailController@starDetail');
-
- $api->get('/starHome/lists', 'BeanDetailController@lists');
- });
|