web.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. use Illuminate\Support\Facades\Http;
  11. use Illuminate\Support\Facades\Route;
  12. use Jiannei\Response\Laravel\Support\Facades\Response;
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Application Routes
  16. |--------------------------------------------------------------------------
  17. |
  18. | Here is where you can register all of the routes for an application.
  19. | It is a breeze. Simply tell Lumen the URIs it should respond to
  20. | and give it the Closure to call when that URI is requested.
  21. |
  22. */
  23. Route::get('/', function () {
  24. return Response::success([
  25. 'name' => config('app.name'),
  26. 'version' => app()->version(),
  27. ]);
  28. });
  29. Route::post('/wechat', "WatchController@handle");
  30. Route::get('/wechat', "WatchController@handle");
  31. Route::get('/wechat/t', "WatchController@test");
  32. Route::post('/UpVmsRecord', 'Admin\BikeManage\ApiController@event');