I have the following problem. In my node.js application, the user clicks on link which send it by get to my app.js. The Link is a filename. In my app.js I can read the param, but the browser still tries to open the file in the browser
app.get('/files/:file', function(req, res) {
console.log('Would handle ' + req.params.file);
});
So what I have to do to stop the browser opening the link?