2021-11-04 23:49:56 +08:00
|
|
|
from extensions.routers import *
|
2021-11-09 02:26:16 +08:00
|
|
|
from apps.data.views import *
|
2021-11-04 23:49:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
router = BaseRouter()
|
2021-11-09 02:26:16 +08:00
|
|
|
router.register('warehouses', WarehouseViewSet, 'role')
|
|
|
|
router.register('clients', ClientViewSet, 'role')
|
|
|
|
router.register('suppliers', SupplierViewSet, 'role')
|
|
|
|
router.register('accounts', AccountViewSet, 'role')
|
|
|
|
router.register('charge_items', ChargeItemViewSet, 'role')
|
|
|
|
router.register('client_categories', ClientCategoryViewSet, 'role')
|
|
|
|
router.register('supplier_categories', SupplierCategoryViewSet, 'role')
|
|
|
|
router.register('goods_categories', GoodsCategoryViewSet, 'role')
|
|
|
|
router.register('goods_units', GoodsUnitViewSet, 'role')
|
2021-11-04 23:49:56 +08:00
|
|
|
urlpatterns = router.urls
|