Log request path in FallbackController

This commit is contained in:
Laura Hausmann 2024-01-27 20:31:20 +01:00
parent 8f58e9abe9
commit 8308a749e9
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -9,6 +9,7 @@ namespace Iceshrimp.Backend.Controllers;
public class FallbackController : Controller { public class FallbackController : Controller {
[ProducesResponseType(StatusCodes.Status501NotImplemented, Type = typeof(ErrorResponse))] [ProducesResponseType(StatusCodes.Status501NotImplemented, Type = typeof(ErrorResponse))]
public IActionResult FallbackAction() { public IActionResult FallbackAction() {
throw new GracefulException(HttpStatusCode.NotImplemented, "This API method has not been implemented"); throw new GracefulException(HttpStatusCode.NotImplemented,
"This API method has not been implemented", Request.Path);
} }
} }