app.php 889 B

12345678910111213141516171819202122
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. use think\facade\Route;
  12. //
  13. //Route::get('/swagger', function() {
  14. // $openapi = \OpenApi\scan('../app/api/controller/v1');
  15. //
  16. // header('Content-Type: application/json');
  17. // echo $openapi->toJson();
  18. //})->middleware(function($request,\Closure $next){
  19. // return $next($request);});