feat: made boards dynamic and save to the db

This commit is contained in:
limited_dev 2023-03-01 14:44:06 +01:00
parent 8ebc78b754
commit 97e4b0026b
14 changed files with 107 additions and 110 deletions

View file

@ -0,0 +1,21 @@
@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);
}
}