Iceshrimp.NET/Iceshrimp.Backend/Controllers/FallbackController.cs
2023-12-24 00:57:07 +01:00

16 lines
No EOL
500 B
C#

using Iceshrimp.Backend.Controllers.Schemas;
using Microsoft.AspNetCore.Mvc;
namespace Iceshrimp.Backend.Controllers;
[Produces("application/json")]
public class FallbackController : Controller {
[ProducesResponseType(StatusCodes.Status501NotImplemented, Type = typeof(ErrorResponse))]
public IActionResult FallbackAction() {
return StatusCode(501, new ErrorResponse {
StatusCode = 501,
Error = "Not implemented",
Message = "This API method has not been implemented"
});
}
}