File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed
src/ProjectTemplates/Web.ProjectTemplates/content/BlazorServerWeb-CSharp Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 1
- <Router AppAssembly =" @typeof(Program).Assembly" >
1
+ @* #if (NoAuth)
2
+ <Router AppAssembly="@typeof(Program).Assembly">
2
3
<Found Context="routeData">
3
- @* #if (!NoAuth)
4
- <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
5
- #else
6
4
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
7
- #endif*@
8
5
</Found>
9
6
<NotFound>
10
- @* #if (!NoAuth)
11
- <CascadingAuthenticationState>
12
- <LayoutView Layout="@typeof(MainLayout)">
13
- <p>Sorry, there's nothing at this address.</p>
14
- </LayoutView>
15
- </CascadingAuthenticationState>
16
- #else
17
7
<LayoutView Layout="@typeof(MainLayout)">
18
8
<p>Sorry, there's nothing at this address.</p>
19
9
</LayoutView>
20
- #endif*@
21
10
</NotFound>
22
11
</Router>
12
+ #else
13
+ <CascadingAuthenticationState>
14
+ <Router AppAssembly="@typeof(Program).Assembly">
15
+ <Found Context="routeData">
16
+ <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
17
+ </Found>
18
+ <NotFound>
19
+ <LayoutView Layout="@typeof(MainLayout)">
20
+ <p>Sorry, there's nothing at this address.</p>
21
+ </LayoutView>
22
+ </NotFound>
23
+ </Router>
24
+ </CascadingAuthenticationState>
25
+ #endif*@
You can’t perform that action at this time.
0 commit comments