RobotApp/RobotApp.Client/Routes.razor
2025-09-10 15:55:04 +07:00

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>