1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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->group(['middleware' => 'auth:api'], function ($api) {
- });
- $api->post('view', 'ShopController@getShop');
- //获取商户列表
- $api->post('getShopList', 'ShopController@getShopList');
- //登录+验签
- $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
- //获取商户详情
- });
- //仅验签
- $api->group(['middleware' => 'chxq_sign'], function ($api) {
- });
- });
|