Allow / at the end of route

Now, adding a / at the end of the route does not affect it.