Commit 81197049 authored by Joaquin Hermosisima's avatar Joaquin Hermosisima

created and edited urls.py

parent 9cf75775
from django.urls import path
from .views import BookListView, BookDetailView, AuthorListView, AuthorDetailView
urlpatterns = [
path('books/', BookListView.as_view(), name='book-list'),
path('book/<int:pk>/details', BookDetailView.as_view(), name='bookitem'),
path('authors/', AuthorListView.as_view(), name= 'author-list'),
path('authors/<int:pk>/details', AuthorDetailView.as_view(), name="authoritem")
]
app_name='bookshelf'
\ 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