title: How should i set mvcoptions.enableendpointrouting in .net core
body: <p>I have added what I have tired , I'm trying to set mvcoptions.enableendpointrouting in ConfigureServices method</p>
  
  <pre><code>  public void ConfigureServices(IServiceCollection services)
          {
              services.AddMvc();
  
          }
  
          // 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())
              {
                  DeveloperExceptionPageOptions developerExceptionPageOptions = new DeveloperExceptionPageOptions()
                  {
                      SourceCodeLineCount = 1
                  };
                  app.UseDeveloperExceptionPage(developerExceptionPageOptions);
              }
  
              app.UseStaticFiles();
              app.UseMvcWithDefaultRoute();
  </code></pre>