From 5f604b3052dab1d51dc130df2470bf330b283ec6 Mon Sep 17 00:00:00 2001 From: ivar Date: Tue, 19 Mar 2024 01:02:22 +0100 Subject: Max lenghts on db schema Use latest temporal from cdn Implement majority of translation functionality Major refinements/bugs --- code/api/Endpoints/EndpointBase.cs | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'code/api/Endpoints/EndpointBase.cs') diff --git a/code/api/Endpoints/EndpointBase.cs b/code/api/Endpoints/EndpointBase.cs index 320ce8d..b2773e1 100644 --- a/code/api/Endpoints/EndpointBase.cs +++ b/code/api/Endpoints/EndpointBase.cs @@ -1,26 +1,26 @@ -namespace I2R.Storage.Api.Endpoints; +namespace Quality.Storage.Api.Endpoints; [ApiController] [Authorize] public class EndpointBase : ControllerBase { - protected LoggedInUserModel LoggedInUser => new(User); + protected LoggedInUserModel LoggedInUser => new(User); - [NonAction] - protected ActionResult KnownProblem(string title = default, string subtitle = default, Dictionary errors = default) { - HttpContext.Response.Headers.Add(AppHeaders.IS_KNOWN_PROBLEM, "1"); - return BadRequest(new KnownProblemModel { - Title = title, - Subtitle = subtitle, - Errors = errors, - TraceId = HttpContext.TraceIdentifier - }); - } + [NonAction] + protected ActionResult KnownProblem(string title = default, string subtitle = default, Dictionary errors = default) { + HttpContext.Response.Headers.Append(AppHeaders.IS_KNOWN_PROBLEM, "1"); + return BadRequest(new KnownProblemModel { + Title = title, + Subtitle = subtitle, + Errors = errors, + TraceId = HttpContext.TraceIdentifier + }); + } - [NonAction] - protected ActionResult KnownProblem(KnownProblemModel problem) { - HttpContext.Response.Headers.Add(AppHeaders.IS_KNOWN_PROBLEM, "1"); - problem.TraceId = HttpContext.TraceIdentifier; - return BadRequest(problem); - } -} \ No newline at end of file + [NonAction] + protected ActionResult KnownProblem(KnownProblemModel problem) { + HttpContext.Response.Headers.Append(AppHeaders.IS_KNOWN_PROBLEM, "1"); + problem.TraceId = HttpContext.TraceIdentifier; + return BadRequest(problem); + } +} -- cgit v1.3