using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using System; namespace Netmash.Test.Api.Controllers { [Authorize] [ApiController] [Route("[controller]")] public class DebugController : ControllerBase { private readonly ILogger _logger; public DebugController(ILogger logger) { _logger = logger; } [AllowAnonymous] [HttpGet("ping")] public IActionResult Ping() { return Ok($"Ping success. System datetime: {DateTime.Now}"); } [HttpGet("ping-auth")] public IActionResult PingAuth() { return Ok($"Secured ping success. System datetime: {DateTime.Now}"); } } }