from django.contrib import admin
from django.urls import path
from . import views

urlpatterns = [
    path('books/', views.book_list, name='book_list'),
    path('book/<int:id>/', views.book_details, name='book_details'),
    path('book-search/', views.book_search, name='book_search'),
    path('publishers/<int:pk>/', views.publisher_edit, name='publisher_edit'),
    path('publishers/new/', views.publisher_edit, name='publisher_create'),
    path('book/<int:book_pk>/reviews/new/', views.review_edit, name='review_create'),
    path('book/<int:book_pk>/reviews/<int:review_pk>/', views.review_edit, name='review_edit'),
]