Fixed call home endpoint name

This commit is contained in:
Brett Hewitson 2021-12-20 12:02:14 +10:00
parent cc95409722
commit 93d273c133
2 changed files with 4 additions and 4 deletions

View file

@ -22,11 +22,11 @@ namespace ServerManager.WebApplication.Controllers
// GET: api/plugin/call/00000000-0000-0000-0000-000000000000/192.168.1.1
[HttpGet()]
[Route("call/{pluginCode}/{ipString}", Name = "Call_V1")]
[Route("call/{pluginCode}/{ipString}", Name = "PluginCall_V1")]
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public ActionResult<bool> Call_V1([FromRoute] string pluginCode, [FromRoute] string ipString)
public ActionResult<bool> PluginCall_V1([FromRoute] string pluginCode, [FromRoute] string ipString)
{
try
{

View file

@ -29,11 +29,11 @@ namespace ServerManager.WebApplication.Controllers
// GET: api/server/call/00000000-0000-0000-0000-000000000000/192.168.1.1
[HttpGet()]
[Route("call/{managerCode}/{ipString}", Name = "Call_V1")]
[Route("call/{managerCode}/{ipString}", Name = "ServerCall_V1")]
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public ActionResult<bool> Call_V1([FromRoute] string managerCode, [FromRoute] string ipString)
public ActionResult<bool> ServerCall_V1([FromRoute] string managerCode, [FromRoute] string ipString)
{
try
{