15 lines
No EOL
543 B
C#
15 lines
No EOL
543 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 : Controller {
|
|
[ProducesResponseType(StatusCodes.Status501NotImplemented, Type = typeof(ErrorResponse))]
|
|
public IActionResult FallbackAction() {
|
|
throw new GracefulException(HttpStatusCode.NotImplemented,
|
|
"This API method has not been implemented", Request.Path);
|
|
}
|
|
} |