diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-21 23:50:34 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-21 23:50:34 -0400 |
commit | dfae52b1e57677c1efa052b1073a2e8a56f32163 (patch) | |
tree | ada99b0bfea1b10456fd9c30623051d6f0931214 | |
parent | 1bd59fc1d82d6d6316812a5609f61c4157af78c3 (diff) | |
download | SMAPI-dfae52b1e57677c1efa052b1073a2e8a56f32163.tar.gz SMAPI-dfae52b1e57677c1efa052b1073a2e8a56f32163.tar.bz2 SMAPI-dfae52b1e57677c1efa052b1073a2e8a56f32163.zip |
fix manual serialisation (#336)
-rw-r--r-- | src/StardewModdingAPI.Web/Controllers/CheckController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StardewModdingAPI.Web/Controllers/CheckController.cs b/src/StardewModdingAPI.Web/Controllers/CheckController.cs index 47b61b2f..a7582edd 100644 --- a/src/StardewModdingAPI.Web/Controllers/CheckController.cs +++ b/src/StardewModdingAPI.Web/Controllers/CheckController.cs @@ -19,7 +19,7 @@ namespace StardewModdingAPI.Web.Controllers /// <summary>Fetch version metadata for the given mods.</summary> /// <param name="mods">The mods for which to fetch update metadata.</param> [HttpPost] - public async Task<string> Post([FromBody] ModSearchModel[] mods) + public async Task<ModGenericModel[]> Post([FromBody] ModSearchModel[] mods) { using (var client = new HttpClient()) { @@ -59,7 +59,7 @@ namespace StardewModdingAPI.Web.Controllers } } - return JsonConvert.SerializeObject(modList, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); + return modList.ToArray(); } } } |