I just created my first app with node.js and express. And I only want to print out current url, so I add these lines:
app.use('/test', function(request, response){
console.log('current url is '+request.url);
response.end();
})
Now when I run on browser at localhost:3000/test in will print me: current url is /
Can someone explain it to me?