Commit 01da4b4c authored by RJC's avatar RJC

added url endpoints for book and author list and detail views

parent 32c17a98
...@@ -6,5 +6,5 @@ urlpatterns = [ ...@@ -6,5 +6,5 @@ urlpatterns = [
path('books/', BookListView.as_view()), path('books/', BookListView.as_view()),
path('books/<int:pk>/', BookDetailView.as_view()), path('books/<int:pk>/', BookDetailView.as_view()),
path('author/', AuthorListView.as_view()), path('author/', AuthorListView.as_view()),
path('author/<int:pk>/', AuthorDetailView()), path('author/<int:pk>/', AuthorDetailView.as_view()),
] ]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment