Commit 8cc0f6de authored by RJC's avatar RJC

added url endpoints for book and author list and detail views

parent 37e27527
from django.urls import path
from .views import HomePageView
from .views import HomePageView, BookListView, BookDetailView, AuthorListView, AuthorDetailView
urlpatterns = [
path('homepage/', HomePageView.as_view())
path('homepage/', HomePageView.as_view()),
path('books/', BookListView.as_view()),
path('books/<int:pk>/', BookDetailView.as_view()),
path('author/', AuthorListView.as_view()),
path('author/<int:pk>/', AuthorDetailView),
]
\ 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