Permalink
Browse files

Added method all

  • Loading branch information...
1 parent 25becc8 commit 5ca094e074fb2cbc804bca67088830a08916ef30 @whoamicz committed Mar 13, 2013
Showing with 5 additions and 3 deletions.
  1. +3 −1 index.js
  2. +2 −2 package.json
View
4 index.js
@@ -4,10 +4,12 @@ var express = require('express'),
var mapRouter = function(routes){
this.app = express();
this.methods = {
+ all: 'all',
get: 'get',
post: 'post',
put: 'put',
- del: 'del'
+ del: 'del',
+ delete: 'del'
};
/*
if (typeof(routes) !== 'object') {
View
4 package.json
@@ -1,6 +1,6 @@
{
"name": "express-treerouter",
- "version": "0.1.3",
+ "version": "0.1.4",
"description": "Easy way for using tree routes in Express.js",
"keywords": [
"treeRouter",
@@ -14,7 +14,7 @@
},
"repository": {
"type": "git",
- "url": "git://github.com/whoamicz/express-treerouter"
+ "url": "git://github.com/whoamicz/express-treerouter.git"
},
"dependencies": {
"express": "3.1.x",

0 comments on commit 5ca094e

Please sign in to comment.