From 03a16df3948f7f43cbe6f764f28829effd27ed1e Mon Sep 17 00:00:00 2001 From: AlanMoonbase Date: Fri, 14 Mar 2025 14:03:20 -0700 Subject: [PATCH] add ping endpoint for status service --- src/Controllers/Common/PingController.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Controllers/Common/PingController.cs diff --git a/src/Controllers/Common/PingController.cs b/src/Controllers/Common/PingController.cs new file mode 100644 index 0000000..7f1b53e --- /dev/null +++ b/src/Controllers/Common/PingController.cs @@ -0,0 +1,17 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; + +namespace sodoff.Controllers.Common +{ + [ApiController] + public class PingController : Controller + { + [HttpPost] + [Produces("applcation/xml")] + [Route("PingWebService.asmx/GetPingPayload")] + public IActionResult GetPingPayload() + { + return Ok("Pong!"); + } + } +}