12345678910111213141516171819202122232425262728 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | Application Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register all of the routes for an application.
- | It is a breeze. Simply tell Lumen the URIs it should respond to
- | and give it the Closure to call when that URI is requested.
- |
- */
- $api = app('Dingo\Api\Routing\Router');
- $api->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');
- });
- });
|