title: Simple routing with web server in netcore console app
body: <p>I'm having trouble getting routing to work with kestrel.</p>
  
  <p>I can't find any good tutorials on how to implement this inside of a netcore console app.</p>
  
  <p>I want to build a simple web server that will have 2-3 end-points that I can access. </p>
  
  <pre><code>public class WebServer
  {
      public static void Init()
      {
          IWebHostBuilder builder = CreateWebHostBuilder(null);
          IWebHost host = builder.Build();
          host.Run();
      }
  
      public static IWebHostBuilder CreateWebHostBuilder(string[] args)
      {
          var config = new ConfigurationBuilder()
          .SetBasePath(Directory.GetCurrentDirectory())
          .Build();
  
          return WebHost.CreateDefaultBuilder(args)
              .UseUrls("http://*:5000")
              .UseConfiguration(config)
              .UseStartup&lt;Startup&gt;();
      }
  
      public class Startup
      {
          public void ConfigureServices(IServiceCollection services)
          {
              services.AddRouting();
              // ????
          }
  
          public void Configure(IApplicationBuilder app)
          {
              // ????
          }
      }
  }
  </code></pre>