fix(router): allow optional trailing slash on routes - fixes #641