from django.urls import path from .api.views import ( AppointmentDetailView, AppointmentListCreateView, CustomerDetailView, CustomerListCreateView, LedgerEntryDetailView, LedgerEntryListCreateView, ProductAdjustStockView, ProductDetailView, ProductListCreateView, ProductMovementsView, ) app_name = "bizapps" urlpatterns = [ path("customers/", CustomerListCreateView.as_view(), name="customer-list"), path("customers//", CustomerDetailView.as_view(), name="customer-detail"), path("ledger/", LedgerEntryListCreateView.as_view(), name="ledger-list"), path("ledger//", LedgerEntryDetailView.as_view(), name="ledger-detail"), path("products/", ProductListCreateView.as_view(), name="product-list"), path("products//", ProductDetailView.as_view(), name="product-detail"), path("products//adjust/", ProductAdjustStockView.as_view(), name="product-adjust"), path("products//movements/", ProductMovementsView.as_view(), name="product-movements"), path("appointments/", AppointmentListCreateView.as_view(), name="appointment-list"), path("appointments//", AppointmentDetailView.as_view(), name="appointment-detail"), ]