Fix route regex so that it can match when there is a trailing slash.