1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?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->post('login', 'AuthController@authenticate');
- //测试签名
- $api->post('sign', 'IndexController@index4');
- //测试支付宝 支付
- $api->post('alipay', 'AlipayController@index');
- //回调
- $api->post('return', 'AlipayController@return');
- //异步回调
- $api->post('notify', 'AlipayController@notify');
- //测试微信支付
- $api->post('weixin', 'WeixinPayController@index');
- //微信回调
- $api->post('wxin_notify', 'WeixinPayController@notify');
- //测试短信验证码
- $api->post('send_sms', 'SendSmsController@index');
- //手机号码注册
- $api->post('mobileRegister', 'AuthController@mobileRegister');
- //微信注册
- $api->post('weixinRegister', 'AuthController@weixinRegister');
- //手机号码,密码登录
- $api->post('mobileLogin', 'AuthController@mobileLogin');
- //手机号码短信登陆
- $api->post('mobileSmsLogin', 'AuthController@mobileSmsLogin');
- //微信登录
- $api->post('weixinLogin', 'AuthController@weixinLogin');
- //测试reids
- $api->post('loginCount', 'AuthController@loginCount');
- $api->group(['middleware' => 'auth:api'], function ($api) {
- });
- //登录+验签
- $api->group(['middleware' => ['chxq_jwt_auth','chxq_sign']], function ($api) {
- //登出
- $api->post('logout', 'AuthController@logout');
- //刷新身份令牌
- $api->post('refresh', 'AuthController@refresh');
- //绑定微信
- $api->post('bindWeixin', 'AuthController@bindWeixin');
- //绑定手机
- $api->post('bindMobile', 'AuthController@bindMobile');
- //设置密码
- $api->post('setPassword', 'AuthController@setPassword');
- //修改密码
- $api->post('updatePassword', 'AuthController@updatePassword');
- //解绑温馨
- $api->post('unbindWeixin', 'AuthController@unbindWeixin');
- //检查微信号是否绑定
- $api->post('isBindWeixin', 'AuthController@isBindWeixin');
- //新增快递地址
- $api->post('addExpressAddress', 'MemberExpressAddressController@addExpressAddress');
- //新增自提地址
- $api->post('addSelfAddress', 'MemberExpressAddressController@addSelfAddress');
- //用户自提地址
- $api->post('selfAddressList', 'MemberExpressAddressController@selfAddressList');
- //删除地址
- $api->post('addressDelete', 'MemberExpressAddressController@delete');
- //设置默认地址
- $api->post('addressIsDefault', 'MemberExpressAddressController@isDefault');
- });
- //仅验签
- $api->group(['middleware' => 'chxq_sign'], function ($api) {
- });
- });
|