一个请求路径,参数在中间str_no,怎么去匹配。当请求这种路径的时候,去访问mock数据logs.json
router.post('/StatementController/{str_no}/logs',function(req,res) { var url = path.join(__dirname,'../mock/logs.json'); res.sendFile(url); });
2.1m questions
2.1m answers
60 comments
56.9k users