fix API version format

This commit is contained in:
Jesse Plamondon-Willard 2017-10-28 11:51:25 -04:00
parent 3f43ebcc0e
commit 9a091bd961
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ namespace StardewModdingAPI.Web.Controllers
{ {
/// <summary>Provides an API to perform mod update checks.</summary> /// <summary>Provides an API to perform mod update checks.</summary>
[Produces("application/json")] [Produces("application/json")]
[Route("api/{version:semanticVersion}/mods")] [Route("api/v{version:semanticVersion}/mods")]
internal class ModsApiController : Controller internal class ModsApiController : Controller
{ {
/********* /*********

View File

@ -11,7 +11,7 @@
"IIS Express": { "IIS Express": {
"commandName": "IISExpress", "commandName": "IISExpress",
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "api/1.0/mods?modKeys=nexus:541,chucklefish:4228,github:Zoryn4163/SMAPI-Mods", "launchUrl": "api/v1.0/mods?modKeys=nexus:541,chucklefish:4228,github:Zoryn4163/SMAPI-Mods",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
@ -19,7 +19,7 @@
"Dewdrop": { "Dewdrop": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": true, "launchBrowser": true,
"launchUrl": "api/1.0/mods?modKeys=nexus:541,chucklefish:4228,github:Zoryn4163/SMAPI-Mods", "launchUrl": "api/v1.0/mods?modKeys=nexus:541,chucklefish:4228,github:Zoryn4163/SMAPI-Mods",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },