19 lines
613 B
Plaintext
19 lines
613 B
Plaintext
@using RobotApp.Client.Layout
|
|
|
|
<CascadingAuthenticationState>
|
|
<Router AppAssembly="@typeof(Program).Assembly">
|
|
<Found Context="routeData">
|
|
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)">
|
|
<NotAuthorized>
|
|
<RedirectToLogin />
|
|
</NotAuthorized>
|
|
</AuthorizeRouteView>
|
|
</Found>
|
|
<NotFound>
|
|
<LayoutView Layout="typeof(MainLayout)">
|
|
<p>Không tìm thấy trang.</p>
|
|
</LayoutView>
|
|
</NotFound>
|
|
</Router>
|
|
</CascadingAuthenticationState>
|