edit routes
This commit is contained in:
parent
ad79a6ce16
commit
f8ed0630f2
|
@ -1,10 +1,11 @@
|
|||
from django.urls import path, include
|
||||
from . import views
|
||||
|
||||
prefix = 'v1/'
|
||||
|
||||
urlpatterns = [
|
||||
path('users/', views.UserList.as_view()),
|
||||
path('users/<int:pk>/', views.UserDetail.as_view()),
|
||||
path('books/', views.BookList.as_view()),
|
||||
path('books/<int:pk>/', views.BookDetail.as_view()),
|
||||
path(prefix + 'users/', views.UserList.as_view()),
|
||||
path(prefix + 'books/', views.BookList.as_view()),
|
||||
path(prefix +'books/<int:pk>/', views.BookDetail.as_view()),
|
||||
path('api-auth/', include('rest_framework.urls'))
|
||||
]
|
Loading…
Reference in New Issue