from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import product_api, quota_distribution_api

router = DefaultRouter()
router.register(r'product', product_api.ProductViewSet, basename='product')
router.register(r'pos_free_products', product_api.POSFreeProductsViewSet, basename='pos_free_products')
router.register(r'distributions', quota_distribution_api.QuotaDistributionViewSet, basename='distributions')

urlpatterns = [
    path('v1/', include(router.urls))
]
