title: Can I combine a gRPC and webapi app into a .NET Core 3.0 in C#?
body: <p>I am using dot net core 3.0.</p>
  
  <p>I have gRPC app. I am able to communicate to it through gRPC protocol.</p>
  
  <p>I thought my next step would be add some restful API support. I modified my startup class to add controllers, routing etc..... When I try navigating to the API using a browser, I get an error "ERR_INVALID_HTTP_RESPONSE" no matter which protocol (http/https) and port I use.  gRPC should be using 5001 and webapi using 8001.</p>
  
  <p>heres my startup class:</p>
  
  <pre><code>public class Startup
  {
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddGrpc();
          services.AddControllers();
      }
  
      public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
      {
          if (env.IsDevelopment())
              app.UseDeveloperExceptionPage();
  
          app.UseRouting();
          app.UseHttpsRedirection();
          app.UseAuthorization();
  
          app.UseEndpoints(endpoints =&gt;
          {
              endpoints.MapGrpcService&lt;BootNodeService&gt;();
              endpoints.MapControllers();
  
          });
      }
  }
  </code></pre>
  
  <p>And my controller:</p>
  
  <pre><code>[ApiController]
  [Route("[controller]")] 
  public class AdminController : ControllerBase 
  { 
      [HttpGet] public string Get() 
      { return "hello"; } 
  }
  </code></pre>
  
  <p>Any thoughts?</p>
  
  <p>Thnx</p>
  
  <p><strong>EDIT</strong>:  the entire project can be found at <a href="https://github.com/matt-raffel-kiva/node" rel="noreferrer">this repo</a>.</p>
  
  <p><strong>EDIT</strong>: view of screen
  <a href="https://i.stack.imgur.com/kVfJ0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kVfJ0.png" alt="enter image description here"></a></p>