title: Web API self host with home page
body: <p>I have a Windows service which needs a web admin portal for managing and controlling configurations and should be exposed by the same Windows service (I don't want to use IIS).</p>
  
  <p>I tried Web API self host but I am not able to set a start up page for my port. I tried the below code, please help me to set up home page for my self hosed web API.</p>
  
  <pre><code>    const string BaseAddress = "http://localhost:8080";
  
      static void HostAPI()
      {
          Console.WriteLine("Starting service");
          HttpSelfHostConfiguration config = new HttpSelfHostConfiguration(BaseAddress);
          config.Routes.MapHttpRoute(
               "Default",
               "{controller}/{action}/{id}" }
          );
  
          using (HttpSelfHostServer server = new HttpSelfHostServer(config))
          {
              server.OpenAsync().Wait();
              Console.WriteLine($"Service started at {BaseAddress}");
          }
      }
  </code></pre>