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.
This commit is contained in:
2026-03-16 10:06:31 +01:00
parent 3cecc0695f
commit bcf38ee384

View File

@@ -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