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);
}
};
如果未找到 res.render 页面,如何重定向到另一个页面?