From cfc74276aef959964b9d8b4ed063558d426d0079 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 13 Mar 2026 13:02:01 +0100 Subject: [PATCH] Update AuthController routes; add Test endpoint Refactored route attributes for Login and Status actions to use nameof() for improved maintainability. Added a new Test GET endpoint that returns a simple OK response. --- Controllers/AuthController.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Controllers/AuthController.cs b/Controllers/AuthController.cs index 1727589..00e32aa 100644 --- a/Controllers/AuthController.cs +++ b/Controllers/AuthController.cs @@ -29,7 +29,7 @@ public class AuthController : ControllerBase /// Triggers the NTLM handshake and returns authenticated user info. /// [Authorize] - [HttpGet("login")] + [HttpGet(nameof(Login))] public IActionResult Login() { var identity = User.Identity; @@ -93,7 +93,7 @@ public class AuthController : ControllerBase } [Authorize] - [HttpGet("status")] + [HttpGet(nameof(Status))] public IActionResult Status() { return Ok(new @@ -102,4 +102,7 @@ public class AuthController : ControllerBase User.Identity?.AuthenticationType }); } + + [HttpGet(nameof(Test))] + public IActionResult Test() => Ok(); } \ No newline at end of file