module.exports = function(app) {
try{
app.get('/:path/:id', function (req, res) {
res.render(req.params.path+'/'+req.params.id, { id: req.params.id });
});
}
catch(e){
console.error(e);
}
};
if res.render page not found, how to redirect to another page?