Update index.js

Add matcher option for a router