Microsoft.AspNetCore.Routing.Patterns.Route Pattern Exception: There is an incomplete parameter in the route template. Check that each '{' character has a matching '}' character. code example
Example: change dot net core web api routing
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});