feat: made boards dynamic and save to the db
This commit is contained in:
parent
8ebc78b754
commit
97e4b0026b
14 changed files with 107 additions and 110 deletions
21
ImageBoardServerApp/Pages/Basic/BoardPage.razor
Normal file
21
ImageBoardServerApp/Pages/Basic/BoardPage.razor
Normal 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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue