Allow routes to work with optional trailing slash

Allow routes to work with optional trailing slash