version('v1', [ 'namespace' => 'App\Http\Controllers\V1', ], function ($api) { //根据行为标识查询行为 $api->get('getBehaviorByIdentify', 'BehaviorController@getBehaviorByIdentify'); //登录+验签 $api->group(['middleware' => ['chxq_jwt_auth']], function ($api) { $api->get('post', 'PostController@index'); $api->get('post/suggest', 'PostController@suggestPost'); $api->get('post/comment', 'PostController@commentList'); $api->get('post/reply', 'PostController@replyList'); $api->get('topicCategory', 'CategoryController@index'); }); });