Update route.js

Add ability to set custom matcher in route function