mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-18 00:18:17 +02:00
21 lines
470 B
C#
21 lines
470 B
C#
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();
|
|
}
|
|
}
|
|
}
|