Skip to content

Commit b7788b8

Browse files
committed
Use internal documentation framework
1 parent 5ce599e commit b7788b8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

readthedocs/v3/urls.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from django.conf.urls import url
1+
from django.conf.urls import url, include
2+
3+
from rest_framework.documentation import include_docs_urls
24

35
from .routers import DefaultRouterWithNesting
46
from .views import (
@@ -56,9 +58,13 @@
5658
)
5759

5860
urlpatterns = [
59-
url(r'^token/$', TokenObtainPairView.as_view(), name='token_obtain_pair'),
60-
url(r'^token/refresh/$', TokenRefreshView.as_view(), name='token_refresh'),
61-
url(r'^token/verify/$', TokenVerifyView.as_view(), name='token_verify'),
61+
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+
),
6268
]
6369

6470
urlpatterns += router.urls

0 commit comments

Comments
 (0)