This commit is contained in:
2025-09-12 11:50:04 +02:00
parent 6e6d17b134
commit 7def038cc9
21 changed files with 285 additions and 216 deletions

View File

@@ -0,0 +1,36 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Watcher.Data;
using Watcher.ViewModels;
namespace Watcher.Controllers;
[Authorize]
[Route("[controller]")]
public class SystemController : Controller
{
private readonly AppDbContext _context;
private readonly ILogger<SystemController> _logger;
public SystemController(AppDbContext context, ILogger<SystemController> logger)
{
_context = context;
_logger = logger;
}
// Edit-Form anzeigen
[HttpGet("Settings")]
//public async Task<IActionResult> Settings()
public IActionResult Settings()
{
ViewBag.DbProvider = "Microsoft.EntityFrameworkCore.Sqlite";
ViewBag.mail = "test@mail.com";
ViewBag.IdentityProvider = "Local";
ViewBag.ServerVersion = "v0.1.0";
return View();
}
// HttpPost
// public IActionResult UpdateNotifications(){}
}