summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 01:23:27 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-22 01:23:27 -0400
commitef60b8d32abf7c8613749766155d80139e33b9d1 (patch)
tree6a41044f304d9f79ac0650efbd787d066e1911e6 /src/StardewModdingAPI.Web
parent9c072333d161d2510ee884d71dc9a714bbf86033 (diff)
downloadSMAPI-ef60b8d32abf7c8613749766155d80139e33b9d1.tar.gz
SMAPI-ef60b8d32abf7c8613749766155d80139e33b9d1.tar.bz2
SMAPI-ef60b8d32abf7c8613749766155d80139e33b9d1.zip
add version number to route for future use (#336)
Diffstat (limited to 'src/StardewModdingAPI.Web')
-rw-r--r--src/StardewModdingAPI.Web/Controllers/ModsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI.Web/Controllers/ModsController.cs b/src/StardewModdingAPI.Web/Controllers/ModsController.cs
index bbf1744f..c7b2aba7 100644
--- a/src/StardewModdingAPI.Web/Controllers/ModsController.cs
+++ b/src/StardewModdingAPI.Web/Controllers/ModsController.cs
@@ -9,6 +9,7 @@ using StardewModdingAPI.Web.Models;
namespace StardewModdingAPI.Web.Controllers
{
/// <summary>Provides an API to perform mod update checks.</summary>
+ [Route("v1.0/mods")]
[Produces("application/json")]
public class ModsController : Controller
{
@@ -30,7 +31,6 @@ namespace StardewModdingAPI.Web.Controllers
/// <summary>Fetch version metadata for the given mods.</summary>
/// <param name="search">The mod update search criteria.</param>
[HttpPost]
- [Route("mods")]
public async Task<ModInfoModel[]> Post([FromBody] ModSearchModel search)
{
IList<ModInfoModel> result = new List<ModInfoModel>();