I have a route in my Express application that looks like this:
app.get('/:id', function (request, response) { β¦ });
The identifier will always be a number. However, this route currently matches other things, such as /login .
I think I need two things:
- use this route only if the identifier is a number, and
- only if there is no longer a route for this particular parameter (for example, a collision with
/login ).
Can this be done?
user1082754 Jun 29 '12 at 8:26 2012-06-29 08:26
source share