17 lines
340 B
Plaintext
17 lines
340 B
Plaintext
@page "/"
|
|
|
|
@using Microsoft.AspNetCore.Authorization
|
|
@attribute [Authorize]
|
|
|
|
@inject NavigationManager NavigationManager
|
|
|
|
<PageTitle>Home</PageTitle>
|
|
|
|
@code {
|
|
protected override void OnInitialized()
|
|
{
|
|
// Redirect authenticated users to dashboard
|
|
NavigationManager.NavigateTo("/dashboard", replace: true);
|
|
}
|
|
}
|