forked from SoDOff-Project/sodoff
add ping endpoint for status service
This commit is contained in:
parent
2f99a2a1ab
commit
03a16df394
17
src/Controllers/Common/PingController.cs
Normal file
17
src/Controllers/Common/PingController.cs
Normal file
@ -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!");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user