Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a prefix to old routes that were revived for backcompat

  • Loading branch information...
commit 5ac47cbd22f70a1439e78b2e9c2725ed696b4f0d 1 parent 039c51a
@pranavkm pranavkm authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 Kudu.Services.Web/App_Start/NinjectServices.cs
View
8 Kudu.Services.Web/App_Start/NinjectServices.cs
@@ -226,10 +226,10 @@ public static void RegisterRoutes(IKernel kernel, RouteCollection routes)
routes.MapHttpRoute("delete-file", "files/{*path}", new { controller = "Files", action = "Delete" }, new { verb = new HttpMethodConstraint("DELETE") });
// These older files routes are there for backward compat, and should eventually be deleted once clients are changed.
- routes.MapHttpRoute("all-files", "live/files", new { controller = "Files", action = "GetFiles" });
- routes.MapHttpRoute("one-file", "live/files/{*path}", new { controller = "Files", action = "GetFile" }, new { verb = new HttpMethodConstraint("GET") });
- routes.MapHttpRoute("save-file", "live/files/{*path}", new { controller = "Files", action = "Save" }, new { verb = new HttpMethodConstraint("PUT") });
- routes.MapHttpRoute("delete-file", "live/files/{*path}", new { controller = "Files", action = "Delete" }, new { verb = new HttpMethodConstraint("DELETE") });
+ routes.MapHttpRoute("old-all-files", "live/files", new { controller = "Files", action = "GetFiles" });
+ routes.MapHttpRoute("old-one-file", "live/files/{*path}", new { controller = "Files", action = "GetFile" }, new { verb = new HttpMethodConstraint("GET") });
+ routes.MapHttpRoute("old-save-file", "live/files/{*path}", new { controller = "Files", action = "Save" }, new { verb = new HttpMethodConstraint("PUT") });
+ routes.MapHttpRoute("old-delete-file", "live/files/{*path}", new { controller = "Files", action = "Delete" }, new { verb = new HttpMethodConstraint("DELETE") });
// Live Command Line
routes.MapHttpRoute("execute-command", "command", new { controller = "Command", action = "ExecuteCommand" }, new { verb = new HttpMethodConstraint("POST") });
Please sign in to comment.
Something went wrong with that request. Please try again.