Permalink
Browse files

Removed app.match()

  • Loading branch information...
1 parent 34c0d25 commit 144a88b109a476c75351fd4a935206281de743a3 @tj tj committed Dec 28, 2011
Showing with 0 additions and 17 deletions.
  1. +0 −17 lib/application.js
View
@@ -53,18 +53,13 @@ app.init = function(){
return self._router.lookup(method, path);
};
- self.match[method] = function(path){
- return self._router.match(method, path);
- };
-
self.remove[method] = function(path){
return self._router.lookup(method, path).remove();
};
});
// del -> delete
self.lookup.del = self.lookup.delete;
- self.match.del = self.match.delete;
self.remove.del = self.remove.delete;
};
@@ -147,18 +142,6 @@ app.lookup = function(path){
return this._router.lookup('all', path);
};
-/**
- * Lookup routes matching the given `url`.
- *
- * @param {Stirng} url
- * @return {Array}
- * @api public
- */
-
-app.match = function(url){
- return this._router.match('all', url);
-};
-
/**
* Proxy `connect#use()` to apply settings to
* mounted applications.

2 comments on commit 144a88b

Contributor

peters replied Jan 18, 2012

Could you explain why? :)

Owner

tj replied Jan 18, 2012

these are going bye bye, I want to replace them with a simpler less opinionated api

Please sign in to comment.