pull/85/head
Lennart Kats 2015-04-29 12:05:28 +02:00
rodzic 22cc05a80c
commit d6d19ff38e
1 zmienionych plików z 2 dodań i 1 usunięć

3
node_modules/frontdoor/lib/route.js wygenerowano vendored
Wyświetl plik

@ -161,7 +161,8 @@ module.exports = function Route(route, options, handler, types) {
* the decoded and validated parameters are stored in `req.params`
* otherwhise an error is returned.
*/
var decodeParams = this.decodeParams = function(req, res, next) {
this.decodeParams = decodeParams;
function decodeParams(req, res, next) {
var urlParams = req.match;
if (!urlParams) return;