ich kotz gleich
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user