Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AbbottF opened this issue Dec 10, 2023 · 1 comment

Comments

@AbbottF
Copy link

AbbottF commented Dec 10, 2023

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

@AbbottF
Copy link
Author

AbbottF commented Dec 10, 2023

I just read Jasons updates for MD. For some reason they did not get into the README.MD which I was working from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant