Skip to content

Commit 6e3eb98

Browse files
committed
Remove routing sandwitch.
1 parent 217e8dd commit 6e3eb98

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Components/test/testassets/Components.TestServer/RazorComponentEndpointsNoInteractivityStartup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
5151
app.Map("/reexecution", reexecutionApp =>
5252
{
5353
reexecutionApp.UseStaticFiles();
54-
reexecutionApp.UseRouting();
5554
reexecutionApp.UseStatusCodePagesWithReExecute("/not-found-reexecute", createScopeForErrors: true);
5655
reexecutionApp.UseRouting();
56+
RazorComponentEndpointsStartup<TRootComponent>.UseFakeAuthState(reexecutionApp);
5757
reexecutionApp.UseAntiforgery();
5858
reexecutionApp.UseEndpoints(endpoints =>
5959
{

src/Components/test/testassets/Components.TestServer/RazorComponentEndpointsStartup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
7575
{
7676
app.Map("/reexecution", reexecutionApp =>
7777
{
78-
reexecutionApp.UseRouting();
7978
reexecutionApp.UseStatusCodePagesWithReExecute("/not-found-reexecute", createScopeForErrors: true);
8079
reexecutionApp.UseRouting();
8180

0 commit comments

Comments
 (0)