I have route:
app.get(\'/:id\', routes.action);
It works fine, but I need skip robot.txt and other (humans ....) I create rege
robot.txt
Internally, the strings that you give to the Express router are just converted into regexes anyway. If you look at the code, you can see that you can just pass a regex directly.
app.get(/^\/[a-z]{0,10}$/, routes.action);
The docs also have examples.