using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

using Monitoring.Controllers;
namespace Monitoring.Features.Ping;

[Route("/api/ping")]
[ApiController]
public class PingController : BaseController
{
	[HttpGet("test", Name = "TestConnection")]
	[AllowAnonymous]
	[ProducesResponseType(StatusCodes.Status200OK)]
	public IActionResult Test()
	{
		return Ok();
	}

	[HttpGet(Name = "Ping")]
	[ProducesResponseType<DateTime>(StatusCodes.Status200OK)]
	public IActionResult Ping()
	{
		return Ok(DateTime.UtcNow);
	}
}
