We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ce599e commit b7788b8Copy full SHA for b7788b8
readthedocs/v3/urls.py
@@ -1,4 +1,6 @@
1
-from django.conf.urls import url
+from django.conf.urls import url, include
2
+
3
+from rest_framework.documentation import include_docs_urls
4
5
from .routers import DefaultRouterWithNesting
6
from .views import (
@@ -56,9 +58,13 @@
56
58
)
57
59
60
urlpatterns = [
- url(r'^token/$', TokenObtainPairView.as_view(), name='token_obtain_pair'),
- url(r'^token/refresh/$', TokenRefreshView.as_view(), name='token_refresh'),
61
- url(r'^token/verify/$', TokenVerifyView.as_view(), name='token_verify'),
+ url(r'^docs/', include_docs_urls(
62
+ title='Read the Docs API',
63
+ patterns=[
64
+ url(r'/api/v3/', include(router.urls)),
65
+ ],
66
+ public=True),
67
+ ),
68
]
69
70
urlpatterns += router.urls
0 commit comments