I solved this problem when I realized I had accidentially removed the default route in the StartUp class’ Configure method:
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});