hotfix redirect system

add auth to create posts and redirects
This commit is contained in:
Дмитрий Шиманский
2023-12-26 13:16:03 +03:00
parent 38c12ca246
commit b9036e2165
12 changed files with 399 additions and 32 deletions

View File

@@ -6,17 +6,17 @@ namespace yaflay.ru.Pages
public class IndexModel : PageModel
{
private readonly ILogger<IndexModel> _logger;
public string? uri { get; set; } = null;
public IndexModel(ILogger<IndexModel> logger)
{
_logger = logger;
}
public void OnGet()
public void OnGet(string? uri)
{
Page();
this.uri = uri ?? null;
}
}