api.php 1.2 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. Route::prefix('log')->group(function(){ //日志记录
  14. Route::post('f134g/save', "Api\LogController@save");//记录
  15. Route::post('rejected/jianshang/send', "Api\jianshang\RejectedController@fakingReceiveSend");//faking rejected发给笕尚的退货信息
  16. });
  17. Route::post('rejected/jianshang/send', "Api\jianshang\RejectedController@fakingReceiveSend");//faking rejected发给笕尚的退货信息
  18. Route::any('wx/login', "Api\WxLoginController@login");//微信小程序登录验证
  19. Route::group(['middleware'=>'auth:api'],function(){
  20. Route::get('wx/waybill', "Api\WxController@index");//微信小程序数据返回
  21. Route::post('wx/waybill/show', "Api\WxController@show");//微信小程序数据返回
  22. Route::post('wx/waybill/update', "Api\WxController@update");//微信小程序数据修改
  23. });