You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem in ...
5. Add the following for correct routing before the app.run at the bottom of the Program.cs
// Required for Reveal
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
yeilds error - "Suggest using top level route registrations instead of UseEndpoints"
this error disappears if replaced by ...
// Required for Reveal
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}"
);
The text was updated successfully, but these errors were encountered:
Problem in ...
5. Add the following for correct routing before the app.run at the bottom of the Program.cs
// Required for Reveal
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
yeilds error - "Suggest using top level route registrations instead of UseEndpoints"
this error disappears if replaced by ...
// Required for Reveal
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}"
);
The text was updated successfully, but these errors were encountered: