Skip to content

Commit

Permalink
Add route to match older Nuget.Server uploads (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericcoleman authored and chenriksson committed Sep 4, 2018
1 parent ddcb106 commit 94ee01b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/NuGet.Server.V2/NuGetV2WebApiEnabler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ public static HttpConfiguration UseNuGetV2WebApiFeed(this HttpConfiguration conf
constraints: new { httpMethod = new HttpMethodConstraint(HttpMethod.Delete) }
);

config.Routes.MapHttpRoute(
name: "apiv2package_upload",
routeTemplate: "api/v2/package",
defaults: new { controller = oDatacontrollerName, action = "UploadPackage" },
constraints: new { httpMethod = new HttpMethodConstraint(HttpMethod.Put) }
);

config.Routes.MapODataServiceRoute(routeName, routeUrlRoot, oDataModel, new CountODataPathHandler(), conventions);
return config;
}
Expand Down

0 comments on commit 94ee01b

Please sign in to comment.