aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-10-28 07:04:56 +0200
committerivarlovlie <git@ivarlovlie.no>2022-10-28 07:04:56 +0200
commitf7818238f45f2da7c0b59d73170e531f30b0d62d (patch)
treef507f362b239849d0c89cc9b558a4d6c43fd0379 /code/api/src
parent56391d94027788304d689ad8faecfb57eb6c50f7 (diff)
downloadgreatoffice-f7818238f45f2da7c0b59d73170e531f30b0d62d.tar.xz
greatoffice-f7818238f45f2da7c0b59d73170e531f30b0d62d.zip
fix: Working EndpointBase with KnowProblem-helper
Diffstat (limited to 'code/api/src')
-rw-r--r--code/api/src/Endpoints/EndpointBase.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/code/api/src/Endpoints/EndpointBase.cs b/code/api/src/Endpoints/EndpointBase.cs
index a2f55a6..de5d967 100644
--- a/code/api/src/Endpoints/EndpointBase.cs
+++ b/code/api/src/Endpoints/EndpointBase.cs
@@ -1,5 +1,6 @@
namespace IOL.GreatOffice.Api.Endpoints;
+[ApiController]
public class EndpointBase : ControllerBase
{
/// <summary>
@@ -10,7 +11,8 @@ public class EndpointBase : ControllerBase
Id = User.FindFirstValue(AppClaims.USER_ID).AsGuid(),
};
- public ActionResult KnownProblem(string title = default, string subtitle = default, Dictionary<string, string> errors = default) {
+ [NonAction]
+ protected ActionResult KnownProblem(string title = default, string subtitle = default, Dictionary<string, string> errors = default) {
return BadRequest(new KnownProblemModel {
Title = title,
Subtitle = subtitle,