I\'m using the new webapp2 (now the default webapp in 1.6), and I haven\'t been able to figure out how to make the trailing slash optional in code like this:
web
This works for me and is very simple. It uses the template format for URI routing in the webapp2 Route class. Trailing slash in this example is optional with no redirection:
webapp2.Route('/your_url<:/?>', PageHandler)
Everything after the colon between the chevrons is considered to be a regex: <:regex>