Commit dca2eeaf authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Fixed the urlpatterns

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