Is there a way to get in once all parameters sent using express.js? I know how do it to know the GET/POST separately, but is there a way to get everything at once?
I didn't found anything about that so far, it's useful to debug in particular.
Of course the req.param(key)
works, but I want to have a list of all parameters, not have to retrieve them, just see them.
Edit: Add Route info:
consoleDev('Url: ' + req.method + ' ' + req.baseUrl + req._parsedUrl.href, 'debug');
consoleDev('Options: ' + JSON.stringify(options), 'debug');
consoleDev('Params: ' + Object.keys(req.params), 'debug');
consoleDev('Params: ' + (req.param('test')), 'debug');
Console:
debug: Url: GET http://localhost:5000/?test=5000
debug: Options: {"controllerName":"home","methodName":"index"}
debug: Params:
debug: Params: 5000