我有路线:
app.get('/:id', routes.action);
它工作正常,但我需要跳过robot.txt和其他(人......)我创建正则表达式(只有字符或数字):
robot.txt
/^[a-z]{0,10}$/
我怎么只能路由匹配这个正则表达式的id?
regex node.js express
express ×1
node.js ×1
regex ×1