|
|
@@ -15,13 +15,17 @@ Including another URLconf
|
|
|
"""
|
|
|
from django.contrib import admin
|
|
|
from django.urls import include, path
|
|
|
+from django.utils.html import format_html
|
|
|
from users.urls import router as user_router
|
|
|
+from rest_framework.documentation import include_docs_urls
|
|
|
|
|
|
-
|
|
|
+title = format_html('''API Documentation <span style="font-size:10px">
|
|
|
+By <a style="font-size:10px" target="_blank" href="https://www.linkedin.com/in/javierguignard">Javier Guignard</a></style>''')
|
|
|
# Wire up our API using automatic URL routing.
|
|
|
# Additionally, we include login URLs for the browsable API.
|
|
|
urlpatterns = [
|
|
|
- path('api/users', include(user_router.urls)),
|
|
|
+ path('', include_docs_urls(title=title)),
|
|
|
+ path('api/users/', include(user_router.urls)),
|
|
|
path('admin/', admin.site.urls),
|
|
|
path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
|
|
|
]
|