Commit 0c4f66d1 authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Added the path of authors to urlpatterns

parent cf03a5fc
from django.urls import path
from .views import HomepageView, BooksListView, BooksDetailView
from .views import HomepageView, BooksListView, BooksDetailView, AuthorsListView, AuthorsDetailView
urlpatterns = [
path('home/', HomepageView, name='home'),
path('books/', BooksListView.as_view(), name='books-list'),
path('books/<int:pk>', BooksDetailView.as_view(), name='book-details'),
path('authors/', AuthorsListView.as_view(), name = 'authors-list'),
]
\ 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