ich kotz gleich

This commit is contained in:
2025-08-22 09:20:31 +02:00
parent 8bf8f5fb19
commit abe438ba0d
4 changed files with 7 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ using Watcher.Models;
using Watcher.ViewModels;
[Authorize]
[Route("Server")]
[Route("[controller]")]
public class ServerController : Controller
{
private readonly AppDbContext _context;
@@ -79,7 +79,7 @@ public class ServerController : Controller
}
// GET: Server/Edit/5
[HttpGet("EditServer/[id]")]
public async Task<IActionResult> EditServer(int id)
{
var server = await _context.Servers.FindAsync(id);
@@ -96,7 +96,7 @@ public class ServerController : Controller
}
// POST: Server/Edit/5
[HttpPost]
[HttpPost("EditServer/{id}")]
[ValidateAntiForgeryToken]
public async Task<IActionResult> EditServer(int id, EditServerViewModel vm)
{
@@ -130,7 +130,7 @@ public class ServerController : Controller
}
// GET: Server/Details/5
[HttpGet("Details")]
[HttpGet("Details/{id}")]
public async Task<IActionResult> Details(int id)
{