Node.js Essentials: url
Constructing and Logging the Full URL
of an Incoming Request in Node.js
http://localhost:3000/api/v1/users?page=2
const fullUrl = `${req.protocol}://${req.get('host')}${req.originalUrl}`;
console.log("Full URL: ", fullUrl);
console.log("Host: ", req...
krayush1109.hashnode.dev1 min read