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