title: How to set default versioning in ASP.NET Core 6 Web API for my scenario?
body: <p>Just realised that my understanding about ASP.NET Core 6 Web API versioning is wrong.</p>
  <p>This is my controller:</p>
  <pre><code>[ApiVersion(&quot;1.0&quot;)]
  [ApiController]
  [Authorize]
  public class FundController 
  {
      [MapToApiVersion(&quot;1.0&quot;)]
      [Route(&quot;/Fund/v{version:apiVersion}/delta&quot;)]
      public async Task&lt;List&lt;PortfolioHolding&lt;Holding&gt;&gt;&gt; Delta([FromQuery] Request dataModel)
      {
      }
  }
  </code></pre>
  <p>What I want is to support route <code>/Fund/v1.0/delta</code> and <code>/Fund/delta</code>, when versioning not provided by the consumer (e.g. calling <code>/Fund/delta</code>), the default version will be hit.</p>
  <p>So I configured the versioning like this. However, when I call <code>/Fund/delta</code>, I get a http 404 error.</p>
  <p>But <code>/Fund/v1.0/delta</code> will hit the correct controller.</p>
  <p>What am I doing wrong?</p>
  <pre><code>services.AddApiVersioning(option =&gt;
          {
              option.DefaultApiVersion = new ApiVersion(1, 0);
              option.AssumeDefaultVersionWhenUnspecified = true;
              option.ReportApiVersions = true;
          });
  </code></pre>