The order of routes is important. The first valid route is used.

/endpoint/:id is valid for /endpoint/field , since :id can be anything

So you need to switch the order.

See also Node.js Express route naming and ordering: how is precedence determined?