mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 02:11:10 +00:00
Adds 404 NotFound page
This commit is contained in:
1 parent
291c0768a5
commit
b3ed6d1bb8
17 files changed
+1386
-3
No files matched your search
@@ -12,7 +12,7 @@ namespace Lumina.Presentation.Web.Controllers;
|
||||
/// Controller for home page.
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
[Route("")] // randle root path - this is needed because app.UseCultureRedirect will redirect to the correct route
|
||||
[Route("")] // handle root path - this is needed because app.UseCultureRedirect will redirect to the correct route
|
||||
[Route("{culture}")] // culture-specific routes
|
||||
public class HomeController : Controller
|
||||
{
|
||||
@@ -54,4 +54,13 @@ public class HomeController : Controller
|
||||
{
|
||||
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Displays the view for errors.
|
||||
/// </summary>
|
||||
[HttpGet("not-found")]
|
||||
public IActionResult NotFoundView()
|
||||
{
|
||||
return View("/Views/Shared/NotFound.cshtml");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user