1
0
mirror of synced 2025-02-05 14:15:28 +01:00
2024-05-16 23:32:46 +01:00

15 lines
361 B
C#

namespace TaikoWebUI.Pages;
public partial class Users
{
private List<User>? users;
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
if (AuthService.IsAdmin || !AuthService.LoginRequired)
{
users = await Client.GetFromJsonAsync<List<User>>("api/Users");
}
}
}