from django.conf.urls.defaults import patterns
from views import doc

urlpatterns = patterns(
    '',
    (r'^api$', doc),
    (r'^example/(?P<resource_name>\w+)/', 'tastydocs.views.example_data'),
)

from django.conf.urls.defaults import patterns
from views import doc

urlpatterns = patterns(
    '',
    (r'^api/$', doc),
    (r'^example/(?P<resource_name>\w+)/', 'tastydocs.views.example_data'),
)

Add trailing slash to /docs/api/ url pattern. This provides more flexibility for end users in that they can choose to navigate to /docs/api or /docs/api/ successfully. Without the trailing slash in the url pattern, /docs/api/ returns a 404.
Add trailing slash to /docs/api/ url pattern. This provides more flexibility for end users in that they can choose to navigate to /docs/api or /docs/api/ successfully. Without the trailing slash in the url pattern, /docs/api/ returns a 404.
