Iceshrimp.NET/Iceshrimp.Backend/Controllers/FallbackController.cs
2024-01-24 18:58:19 +01:00

14 lines
No EOL
533 B
C#

using System.Net;
using Iceshrimp.Backend.Controllers.Schemas;
using Iceshrimp.Backend.Core.Middleware;
using Microsoft.AspNetCore.Mvc;
namespace Iceshrimp.Backend.Controllers;
[Produces("application/json")]
public class FallbackController(ILogger<FallbackController> logger) : Controller {
[ProducesResponseType(StatusCodes.Status501NotImplemented, Type = typeof(ErrorResponse))]
public IActionResult FallbackAction() {
throw new CustomException(HttpStatusCode.NotImplemented, "This API method has not been implemented");
}
}