diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-28 07:04:56 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-28 07:04:56 +0200 |
| commit | f7818238f45f2da7c0b59d73170e531f30b0d62d (patch) | |
| tree | f507f362b239849d0c89cc9b558a4d6c43fd0379 /code/api/src/Endpoints | |
| parent | 56391d94027788304d689ad8faecfb57eb6c50f7 (diff) | |
| download | greatoffice-f7818238f45f2da7c0b59d73170e531f30b0d62d.tar.xz greatoffice-f7818238f45f2da7c0b59d73170e531f30b0d62d.zip | |
fix: Working EndpointBase with KnowProblem-helper
Diffstat (limited to 'code/api/src/Endpoints')
| -rw-r--r-- | code/api/src/Endpoints/EndpointBase.cs | 4 |
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, |
