core/controller/controller.js
function(req) {

        req.getParams = function() {
            // copy
            var params = JSON.parse(JSON.stringify(req.params));
            switch( req.method.toLowerCase() ) {
                case 'get':
                    params = merge(params, req.get, true);
                    break;

                case 'post':
                    params = merge(params, req.post, true);
                    break;

                case 'put':
                    params = merge(params, req.put, true);
                    break;

                case 'delete':
                    params = merge(params, req.delete, true);
                    break;
            }

            return params
        }

        req.getParam = function(name) {
            // copy
            var param = null, params = JSON.parse(JSON.stringify(req.params));
            switch( req.method.toLowerCase() ) {
                case 'get':
                    param = req.get[name];
                    break;

                case 'post':
                    param = req.post[name];
                    break;

                case 'put':
                    param= req.put[name];
                    break;

                case 'delete':
                    param = req.delete[name];
                    break;
            }

            return param
        }
    }
function(req) {

        req.getParams = function() {
            // copy
            var params = JSON.parse(JSON.stringify(req.params));
            switch( req.method.toLowerCase() ) {
                case 'get':
                    params = merge(params, req.get, true);
                    break;

                case 'post':
                    params = merge(params, req.post, true);
                    break;

                case 'put':
                    params = merge(params, req.put, true);
                    break;

                case 'delete':
                    params = merge(params, req.delete, true);
                    break;
            }

            return params
        }

        req.getParam = function(name) {
            // copy
            var param = null, params = JSON.parse(JSON.stringify(req.params));
            switch( req.method.toLowerCase() ) {
                case 'get':
                    param = req.get[name];
                    break;

                case 'post':
                    param = req.post[name];
                    break;

                case 'put':
                    param= req.put[name];
                    break;

                case 'delete':
                    param = req.delete[name];
                    break;
            }

            return param
        }
    }
function ( req ) { req . getParams = function ( ) { // copy var params = JSON . parse ( JSON . stringify ( req . params ) ) ; switch ( req . method . toLowerCase ( ) ) { case 'get' : params = merge ( params , req . get , true ) ; break ; case 'post' : params = merge ( params , req . post , true ) ; break ; case 'put' : params = merge ( params , req . put , true ) ; break ; case 'delete' : params = merge ( params , req . delete , true ) ; break ; } return params } req . getParam = function ( name ) { // copy var param = null , params = JSON . parse ( JSON . stringify ( req . params ) ) ; switch ( req . method . toLowerCase ( ) ) { case 'get' : param = req . get [ name ] ; break ; case 'post' : param = req . post [ name ] ; break ; case 'put' : param = req . put [ name ] ; break ; case 'delete' : param = req . delete [ name ] ; break ; } return param } }
Get all Params
Get all Params