mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-22 18:38:18 +02:00
Add project files.
This commit is contained in:
commit
b2325a46ef
1351 changed files with 48136 additions and 0 deletions
21
Pages/Logs.cshtml.cs
Normal file
21
Pages/Logs.cshtml.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
using MTWireGuard.Repositories;
|
||||
|
||||
namespace MTWireGuard.Pages
|
||||
{
|
||||
public class LogsModel : PageModel
|
||||
{
|
||||
private readonly IMikrotikRepository API;
|
||||
|
||||
public LogsModel(IMikrotikRepository mikrotik)
|
||||
{
|
||||
API = mikrotik;
|
||||
}
|
||||
|
||||
public async Task OnGetAsync()
|
||||
{
|
||||
ViewData["Logs"] = await API.GetLogsAsync();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue