from django.urls import path
from . import views

urlpatterns = [
    path('', views.home, name='home'),
    path('categories/', views.categories, name='categories'),
    path('category/<int:category_id>', views.category, name='category'),
    path('ebooks/', views.ebooks, name='ebooks'),
    path('ebook/<int:ebook_id>', views.ebook, name='ebook'),
    path('ebook/<int:ebook_id>/comment', views.comment, name='comment'),
    path('admin/',views.staff,name='staff'),
    path('search/',views.search,name='search'),
    path('search_books/',views.search_books,name='search_books')
    ]
