Permalink
Browse files

Added patch method

  • Loading branch information...
1602 committed Feb 27, 2013
1 parent ee9e399 commit 3d9cb58133b86c397c4a9f10467b75fa732677ca
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/railway_routes.js
View
@@ -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;

0 comments on commit 3d9cb58

Please sign in to comment.