adding
This commit is contained in:
@@ -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"),
|
||||
]
|
||||
Reference in New Issue
Block a user