Routing is not working with self-hosted web API [duplicate]
This question already has an answer here: WebApi giving 404 whilst debugging; works when published 1 answer This is essentially what I have, a very simple set of three files with fresh asp.net core 2.1 (actually copy-pasted from tutorials): public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>(); } Then goes the simplest startup class Startup { public Startup(IConfiguration configuration) { Configuration =