using Microsoft.AspNetCore.Mvc;
namespace MuiCharts.Api;
///
/// Controller for handling errors.
///
[ApiController]
[Route("[controller]")]
public class ErrorController: ControllerBase
{
///
/// Handles the HTTP GET request for the error endpoint.
///
/// An IActionResult representing the error response.
[HttpGet]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public IActionResult Error() => Problem();
}