Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added patch method

  • Loading branch information...
commit 3d9cb58133b86c397c4a9f10467b75fa732677ca 1 parent ee9e399
@1602 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/railway_routes.js
View
3  lib/railway_routes.js
@@ -96,7 +96,8 @@ Map.prototype.root = function (handler, middleware, options) {
this.get('/', handler, middleware, options);
};
-['get', 'post', 'put', 'delete', 'del', 'all'].forEach(function (method) {
+['get', 'post', 'put', 'patch', 'delete', 'del',
+'all'].forEach(function (method) {
Map.prototype[method] = function (subpath, handler, middleware, options) {
var controller, action;
Please sign in to comment.
Something went wrong with that request. Please try again.