In Startup.cs I added api/ to the start of my route pattern.
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "api/{controller}/{action=Index}/{id?}");
});
But it hasn't done anything: the old URLs continue to work and the ones that start with /api return 404. This makes no sense!
How do I get my API to be served under /api?
