title: Laravel Lumen, Swagger returns json not the view
body: <p>I installed <a href="https://github.com/DarkaOnLine/SwaggerLume" rel="nofollow noreferrer">SwaggerLume</a> with the following configurations</p>
  <pre><code>class ApiController extends Controller
  {
      /**
       * @OA\Info(
       *      version=&quot;3.0&quot;,
       *      title=&quot;OpenApi Documentation&quot;,
       *      description=&quot;&quot;
       * )
       *
       * @OA\Server(
       *      url=SWAGGER_LUME_CONST_HOST,
       *      description=&quot;API Server&quot;
       * )
       */
       ...
  }
  </code></pre>
  <p>and</p>
  <pre><code>&lt;?php
  
  return [
      'api' =&gt; [
          'title' =&gt; 'Swagger Lume API',
      ],
  
      'routes' =&gt; [
          'api' =&gt; '/api/documentation',
          'docs' =&gt; '/api/oa',
          'oauth2_callback' =&gt; '/api/oauth2-callback',
          'assets' =&gt; '/swagger-ui-assets',
          'middleware' =&gt; [
              'api' =&gt; [],
              'asset' =&gt; [],
              'docs' =&gt; [],
              'oauth2_callback' =&gt; [],
          ],
      ],
  
      'paths' =&gt; [
          'docs' =&gt; storage_path('api-docs'),
          'docs_json' =&gt; 'api-docs.json',
          'annotations' =&gt; base_path('app'),
          'excludes' =&gt; [],
  //        'base' =&gt; env('L5_SWAGGER_BASE_PATH', null),
  
          /*
          |--------------------------------------------------------------------------
          | Absolute path to directory where to export views
          |--------------------------------------------------------------------------
          */
          'views' =&gt; base_path('resources/views/vendor/swagger-lume'),
      ],
      'generate_always' =&gt; env('SWAGGER_GENERATE_ALWAYS', false),
      'swagger_version' =&gt; env('SWAGGER_VERSION', '3.0'),
      'proxy' =&gt; false,
  
      'additional_config_url' =&gt; null,
      'operations_sort' =&gt; env('L5_SWAGGER_OPERATIONS_SORT', null),
      'validator_url' =&gt; null,
      'constants' =&gt; [
          'SWAGGER_LUME_CONST_HOST' =&gt; env('SWAGGER_LUME_CONST_HOST', 'http://my-default-host.com'),
      ],
  ];
  </code></pre>
  <p>I should note that I commented</p>
  <pre><code>//        'base' =&gt; env('L5_SWAGGER_BASE_PATH', null),
  </code></pre>
  <p>since swagger 3 doesn't support basePath.</p>
  <p>and .env</p>
  <pre><code>SWAGGER_LUME_CONST_HOST=payment.local
  L5_SWAGGER_BASE_PATH=payment.local
  </code></pre>
  <p>but the result is</p>
  <p><a href="https://i.stack.imgur.com/MhIRt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MhIRt.png" alt="enter image description here" /></a></p>
  <p>Not the view. I also have the view</p>
  <p><a href="https://i.stack.imgur.com/G7kP4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G7kP4.png" alt="enter image description here" /></a></p>