diff --git a/Watcher/Controllers/ServerController.cs b/Watcher/Controllers/ServerController.cs index c26edd8..0126f82 100644 --- a/Watcher/Controllers/ServerController.cs +++ b/Watcher/Controllers/ServerController.cs @@ -56,7 +56,7 @@ public class ServerController : Controller _logger.LogInformation("Neuer Server erstellt: {server}", server.Name); - return RedirectToAction("Overview", "Server"); + return RedirectToAction("Overview"); } [HttpPost("Delete")] diff --git a/Watcher/Program.cs b/Watcher/Program.cs index 4356947..0c4e404 100644 --- a/Watcher/Program.cs +++ b/Watcher/Program.cs @@ -210,7 +210,7 @@ app.UseStaticFiles(); app.MapControllerRoute( name: "default", - pattern: "{controller=Auth}/{action=Login}/" + pattern: "{controller=Home}/{action=Index}/{id?}" ); app.Run();