Files
shopship/apps/bizapps/urls.py
T

29 lines
1.2 KiB
Python
Raw Normal View History

2026-08-24 15:54:08 +03:30
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"),
]