mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-21 22:24:23 +01:00
Adding prettier error handling page in the pipeline
This commit is contained in:
18
BTCPayServer/Controllers/ErrorController.cs
Normal file
18
BTCPayServer/Controllers/ErrorController.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace BTCPayServer.Controllers
|
||||
{
|
||||
[Route("[controller]/[action]")]
|
||||
public class ErrorController : Controller
|
||||
{
|
||||
public IActionResult Handle(int? statusCode = null)
|
||||
{
|
||||
return View(statusCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user