title: .Net Core 3.1 Web API Throwing 404 on new Controller
body: <p>I've created a new controller in a brand new web api project in .net core 3.1.  Whenever I try to post to the route I get a 404.</p>
  
  <p>The controller is set as so:</p>
  
  <pre><code>[ApiController]
  [Route("[controller]")]
  public class AuthCodeController : Controller
  {
      private readonly ApplicationContext _context;
  
      public AuthCodeController(ApplicationContext context)
      {
          _context = context;
      }
  
      [HttpPost]
      [Consumes("application/x-www-form-urlencoded")]
      public JsonResult GetAuthCode(AuthCode authCode)
      {
          try
          {
              var theCodes = _context.AuthCodes.ToList();
              var tmpCode = new Random();
              var myNum = tmpCode.Next(100000, 999999999);
              while (theCodes.Any(tc =&gt; tc.AuthCodeRnd == myNum))
              {
                  myNum = tmpCode.Next();
              }
  
              if (authCode.AuthCodeRnd &gt; 0)
              {
                  var removeCode = _context.AuthCodes.FirstOrDefault(c =&gt; c.AuthCodeRnd == authCode.AuthCodeRnd);
                  if (removeCode != null) _context.AuthCodes.Remove(removeCode);
              }
  
              Guid authGuid = Guid.NewGuid();
  
              var tmpRec = new AuthCode
              {
                  Guid = authGuid,
                  AuthCodeRnd = myNum,
                  Address = authCode.tAddress,
                  SmallLogoAddress = authCode.SmallLogoAddress,
                  ClientFolder = authCode.ClientFolder,
                  CompanyFolder = authCode.CompanyFolder,
                  Folder = authCode.Folder
              };
  
              _context.AuthCodes.Add(tmpRec);
              _context.SaveChanges();
  
              var retVals = new AuthResponse
              {
                  Guid = authGuid,
                  ReturnAuthCode = myNum
              };
  
              return Json(retVals);
          }
          catch (Exception ex)
          {
              var message = new ErrorResponse();
              message.Status = "An Error Has Occured";
              message.Message = ex.ToString();
              return Json(message);
          }            
      }
  }
  </code></pre>
  
  <p>When I POST to this method I receive a 404.  I'm using the url <code>https://localhost:44328/AuthCode/GetAuthCode</code></p>
  
  <p>The only modifications I made in the startup.cs are adding the dbcontext service options. Everything else is default.  I can get the weatherforecast to show.</p>
  
  <p>EDIT - added startup.cs</p>
  
  <pre><code>public class Startup
  {
      public Startup(IConfiguration configuration)
      {
          Configuration = configuration;
      }
  
      public IConfiguration Configuration { get; }
  
      // This method gets called by the runtime. Use this method to add services to the container.
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddDbContext&lt;ApplicationContext&gt;(options =&gt; options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
  
          services.AddControllers();
      }
  
      // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
      public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
      {
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
  
          app.UseHttpsRedirection();
  
          app.UseRouting();
  
          app.UseAuthorization();
  
          app.UseEndpoints(endpoints =&gt;
          {
              endpoints.MapControllers();
          });
      }
  }
  </code></pre>
  
  <p>Solved: I needed to disable SSL Verification in POSTMan</p>