From 93d273c133b957382320f3a6405f7a9024166134 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Mon, 20 Dec 2021 12:02:14 +1000 Subject: [PATCH] Fixed call home endpoint name --- .../Controllers/PluginController.cs | 4 ++-- .../Controllers/ServerController.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ServerManager.WebApplication/Controllers/PluginController.cs b/src/ServerManager.WebApplication/Controllers/PluginController.cs index 9d04f889..f60b6de9 100644 --- a/src/ServerManager.WebApplication/Controllers/PluginController.cs +++ b/src/ServerManager.WebApplication/Controllers/PluginController.cs @@ -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 Call_V1([FromRoute] string pluginCode, [FromRoute] string ipString) + public ActionResult PluginCall_V1([FromRoute] string pluginCode, [FromRoute] string ipString) { try { diff --git a/src/ServerManager.WebApplication/Controllers/ServerController.cs b/src/ServerManager.WebApplication/Controllers/ServerController.cs index 51d3c216..fd02c2ed 100644 --- a/src/ServerManager.WebApplication/Controllers/ServerController.cs +++ b/src/ServerManager.WebApplication/Controllers/ServerController.cs @@ -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 Call_V1([FromRoute] string managerCode, [FromRoute] string ipString) + public ActionResult ServerCall_V1([FromRoute] string managerCode, [FromRoute] string ipString) { try {