mirror of
https://github.com/XFox111/MuiCharts.git
synced 2026-04-22 06:51:05 +03:00
Added ASP.NET backend with SQLite
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace MuiCharts.Api;
|
||||
|
||||
/// <summary>
|
||||
/// Controller for handling errors.
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[Route("[controller]")]
|
||||
public class ErrorController: ControllerBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Handles the HTTP GET request for the error endpoint.
|
||||
/// </summary>
|
||||
/// <returns>An IActionResult representing the error response.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType<ProblemDetails>(StatusCodes.Status500InternalServerError)]
|
||||
public IActionResult Error() => Problem();
|
||||
}
|
||||
Reference in New Issue
Block a user