2025-08-18 10:08:33 +03:30
|
|
|
from django.urls import path, include
|
|
|
|
|
from rest_framework.routers import DefaultRouter
|
2025-11-25 13:46:55 +03:30
|
|
|
|
|
|
|
|
from .viewsets import product_api, quota_distribution_api, quota_api
|
2025-08-18 10:08:33 +03:30
|
|
|
|
|
|
|
|
router = DefaultRouter()
|
2025-08-19 09:03:41 +03:30
|
|
|
router.register(r'product', product_api.ProductViewSet, basename='product')
|
|
|
|
|
router.register(r'pos_free_products', product_api.POSFreeProductsViewSet, basename='pos_free_products')
|
2025-09-06 12:04:41 +03:30
|
|
|
router.register(r'distributions', quota_distribution_api.QuotaDistributionViewSet, basename='distributions')
|
2025-08-18 10:08:33 +03:30
|
|
|
|
2025-11-25 13:46:55 +03:30
|
|
|
router.register(r'quotas_stat', quota_api.OrganizationQuotaStatsViewSet, basename='quotas_stat')
|
|
|
|
|
|
2025-08-18 10:08:33 +03:30
|
|
|
urlpatterns = [
|
|
|
|
|
path('v1/', include(router.urls))
|
2025-08-19 09:03:41 +03:30
|
|
|
]
|