from django.urls import path from . import views from .views import ProductAPIView urlpatterns = [ path('', views.catalouge_page, name='index'), path('product//', views.product_page, name='product_detail'), path('product-voice//', views.edit_voice_product, name='voice_product_detail'), path('product//edit/', views.edit_product, name='edit_product'), path('upload/', views.upload_image_and_audio, name='add_product_by_image'), path('api/products/', ProductAPIView.as_view(), name='product_api'), path("record/", views.record, name="record"), path("record/detail//", views.record_detail, name="record_detail"), ]