@page "/{boardTag}/"
@using ImageBoardServerApp.Data.Repository
@using System.ComponentModel.DataAnnotations

<Board board="@m"/>

@code {

    [Parameter]
    [Required]
    public string boardTag { get; set; }

    private BoardData m;


    protected override async Task OnParametersSetAsync()
    {
        m = await BoardsRepository.getBoardByTagAsync(boardTag);
    }

}