From bcf38ee384f9052284f1b985d1eeb2a7ab7fb1a5 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 16 Mar 2026 10:06:31 +0100 Subject: [PATCH] Refactor AuthController 'me' endpoint and remove auth - Changed [HttpGet("me")] to [HttpGet(nameof(Me))] for route safety. - Renamed method from GetMe to Me for consistency. - Removed [Authorize] attribute to allow unauthenticated access. --- Controllers/AuthController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/AuthController.cs b/Controllers/AuthController.cs index 00e32aa..206cae9 100644 --- a/Controllers/AuthController.cs +++ b/Controllers/AuthController.cs @@ -11,8 +11,8 @@ namespace FakeNTLMServer.Controllers; public class AuthController : ControllerBase { [Authorize] - [HttpGet("me")] - public IActionResult GetMe() + [HttpGet(nameof(Me))] + public IActionResult Me() { var identity = User.Identity; return Ok(new