12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?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->get('/floor/hotVideoIds', 'FloorController@hotVideoIds');
-
- $api->get('memberList', 'MemberGroupController@memberList');
-
- $api->group(['middleware' => 'chxq_jwt_auth'], function ($api) {
-
- $api->get('/floor/index', 'FloorController@index');
- });
- });
- });
|