diff --git a/Server/API/AgentUpdateController.cs b/Server/API/AgentUpdateController.cs index 215c1e46..9bd6900c 100644 --- a/Server/API/AgentUpdateController.cs +++ b/Server/API/AgentUpdateController.cs @@ -37,7 +37,6 @@ public class AgentUpdateController : ControllerBase _logger = logger; } - [HttpGet("[action]/{platform}")] [EnableRateLimiting(PolicyNames.AgentUpdateDownloads)] public async Task DownloadPackage(string platform) @@ -89,6 +88,15 @@ public class AgentUpdateController : ControllerBase } } + + [HttpGet("[action]/{platform}/{downloadId}")] + [EnableRateLimiting(PolicyNames.AgentUpdateDownloads)] + [Obsolete("This method is only for backwards compatibility. Remove after a few releases.")] + public async Task DownloadPackage(string platform, string downloadId) + { + return await DownloadPackage(platform); + } + private async Task CheckForDeviceBan(string deviceIp) { if (string.IsNullOrWhiteSpace(deviceIp))