Skip to content

Commit

Permalink
Update urls.py
Browse files Browse the repository at this point in the history
removed trailing slash to resolve tastypie endpoints correctly (not relying on append slash).
See issue concentricsky#89
  • Loading branch information
jimlyndon committed Jan 30, 2015
1 parent 76b7874 commit 0d9bd87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tastypie_swagger/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
urlpatterns = patterns('',
url(r'^$', SwaggerView.as_view(), name='index'),
url(r'^resources/$', ResourcesView.as_view(), name='resources'),
url(r'^schema/(?P<resource>\S+)/$', SchemaView.as_view()),
url(r'^schema/(?P<resource>\S+)$', SchemaView.as_view()),
url(r'^schema/$', SchemaView.as_view(), name='schema'),
)

0 comments on commit 0d9bd87

Please sign in to comment.