I have several (almost all) urls that point to a single page and use the following line to send the file:
app.get('*', function(req, res){
res.sendFile(__dirname+'/home.html');
});
But with that, also files that I request to my site and etc, are redirected to the home, I would not want to have to create a new line for each url requested, like this:
app.get('/urlA', function(req, res){
res.sendFile(__dirname+'/home.html');
});
app.get('/urlB', function(req, res){
res.sendFile(__dirname+'/home.html');
});
Would it be possible to do something like the code below?
app.get('/urlA, /urlB', function(req, res){
res.sendFile(__dirname+'/home.html');
});