summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Controllers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 01:57:18 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 01:57:18 -0400
commit86e55596786f8d65854a75632512750b6e09faae (patch)
tree27f082b50b70f3d3b020855f9ac8b3b1cc5430f6 /src/StardewModdingAPI.Web/Controllers
parentef60b8d32abf7c8613749766155d80139e33b9d1 (diff)
downloadSMAPI-86e55596786f8d65854a75632512750b6e09faae.tar.gz
SMAPI-86e55596786f8d65854a75632512750b6e09faae.tar.bz2
SMAPI-86e55596786f8d65854a75632512750b6e09faae.zip
switch mod update endpoint to GET with comma-delimited mod keys (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web/Controllers')
-rw-r--r--src/StardewModdingAPI.Web/Controllers/ModsController.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/StardewModdingAPI.Web/Controllers/ModsController.cs b/src/StardewModdingAPI.Web/Controllers/ModsController.cs
index c7b2aba7..d3b49445 100644
--- a/src/StardewModdingAPI.Web/Controllers/ModsController.cs
+++ b/src/StardewModdingAPI.Web/Controllers/ModsController.cs
@@ -29,13 +29,13 @@ namespace StardewModdingAPI.Web.Controllers
** Public methods
*********/
/// <summary>Fetch version metadata for the given mods.</summary>
- /// <param name="search">The mod update search criteria.</param>
- [HttpPost]
- public async Task<ModInfoModel[]> Post([FromBody] ModSearchModel search)
+ /// <param name="modKeys">The namespaced mod keys to search.</param>
+ [HttpGet]
+ public async Task<ModInfoModel[]> Post(IEnumerable<string> modKeys)
{
IList<ModInfoModel> result = new List<ModInfoModel>();
- foreach (string modKey in search.ModKeys)
+ foreach (string modKey in modKeys)
{
// parse mod key
if (!this.TryParseModKey(modKey, out string vendorKey, out string modID))