from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
            PartnerViewSet,
            BranchViewset,
            AreaViewSet,
            ProductViewset,
            ProductCategoryViewSet,
            AccountViewset,
            AccountDefaultViewSet,
            SerialNumberViewSet
            )

router = DefaultRouter()
router.register('partner', PartnerViewSet)
router.register('branch', BranchViewset)
router.register('area', AreaViewSet)
router.register('product-category', ProductCategoryViewSet)
router.register('product', ProductViewset)
router.register('account', AccountViewset)
router.register('accountDefault', AccountDefaultViewSet)
router.register('serial-number', SerialNumberViewSet)


app_name = 'masters'
urlpatterns = [
    path('',include(router.urls)),

]

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
            PartnerViewSet,
            BranchViewset,
            AreaViewSet,
            ProductViewset,
            ProductCategoryViewSet,
            AccountViewset,
            AccountDefaultViewSet,
            SerialNumberViewSet
            )

router = DefaultRouter()
router.register('partner', PartnerViewSet)
router.register('branch', BranchViewset)
router.register('area', AreaViewSet)
router.register('product-category', ProductCategoryViewSet)
router.register('product', ProductViewset)
router.register('account', AccountViewset)
router.register('accountDefault', AccountDefaultViewSet)
router.register('serial-number', SerialNumberViewSet)


app_name = 'masters'
urlpatterns = [
    path('',include(router.urls)),

]
