express get full url
snippet in javascript

express get full url

user6790

var fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;