1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- $api = app('Dingo\Api\Routing\Router');
- $api->version('v1', [
- 'namespace' => 'App\Http\Controllers',
- ], function ($api) {
-
- $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
- });
- $api->group(['middleware' => 'chxq_sign'], function ($api) {
-
- $api->post('/templateSet/preview', 'CmsContentTemplateSetController@preview');
-
- $api->get('/templateSet/templateName', 'CmsContentTemplateSetController@template');
-
- $api->get('/templateSet/productList', 'CmsContentTemplateSetController@productList');
- });
- $api->group(['middleware' => 'chxq_jwt_auth'], function ($api) {
-
- $api->get('/template/exchange', 'CmsContentTemplateSetController@exchangeMall');
-
- $api->get('/subject/products', 'CmsContentTemplateSetController@getProducts');
- });
- });
- $api->version('v1', [
- 'namespace' => 'App\Http\Controllers\V2',
- ], function ($api) {
- $api->group([
- 'prefix' => 'v2'
- ], function ($api) {
-
- $api->get('/floor/info', 'FloorController@info');
- $api->group(['middleware' => 'chxq_jwt_auth'], function ($api) {
-
- $api->get('/floor/index', 'FloorController@index');
-
- $api->get('/floor/hotVideoIds', 'FloorController@hotVideoIds');
-
- $api->get('memberList', 'MemberGroupController@memberList');
- });
- });
- });
|