Skip to content

In README.md Using Reveal SDK in a Blazor Server Application - Step 4 - Update Program.cs #1

@AbbottF

Description

@AbbottF

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?}"
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions