This commit is contained in:
2026-08-24 15:54:08 +03:30
commit 236002a87c
133 changed files with 5946 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
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/<str:pk>/", CustomerDetailView.as_view(), name="customer-detail"),
path("ledger/", LedgerEntryListCreateView.as_view(), name="ledger-list"),
path("ledger/<str:pk>/", LedgerEntryDetailView.as_view(), name="ledger-detail"),
path("products/", ProductListCreateView.as_view(), name="product-list"),
path("products/<str:pk>/", ProductDetailView.as_view(), name="product-detail"),
path("products/<str:pk>/adjust/", ProductAdjustStockView.as_view(), name="product-adjust"),
path("products/<str:pk>/movements/", ProductMovementsView.as_view(), name="product-movements"),
path("appointments/", AppointmentListCreateView.as_view(), name="appointment-list"),
path("appointments/<str:pk>/", AppointmentDetailView.as_view(), name="appointment-detail"),
]