Issue #2: Fix doc not being generated for routes without trailing slash.

Fixes #2