title: Why does my default action method return a 404?
body: <p>I have the following .NET Core 2.2 API controller</p>
  <pre><code>public class TestController : ControllerBase
  {
      [HttpGet]
      public IActionResult Get()
      {
          return Ok(1);
      }
  
      [HttpGet]
      [ExactMatch(&quot;id&quot;)]
      public IActionResult Get([FromRoute]int id)
      {
          return Ok(id);
      }
  }
  </code></pre>
  <p>And this is my route definition:</p>
  <pre><code>app.UseMvc(
                  routes =&gt;
                  {
                      routes.MapRoute(&quot;default&quot;, &quot;api/{controller}/{action=Get}/{id?}&quot;);
                  }
                  );
          }
  </code></pre>
  <p>The following URLs work fine:</p>
  <pre><code>https://localhost:44305/api/test
  https://localhost:44305/api/test/get/5
  </code></pre>
  <p>but not this one</p>
  <pre><code>https://localhost:44305/api/test/5 /* Notice the missing action method*/
  </code></pre>
  <p>It returns a 404 error</p>
  <p>Could anybody help me figure out what I am missing?</p>