HimoolERP/apps/data/urls.py

16 lines
708 B
Python
Raw Normal View History

2021-11-04 23:49:56 +08:00
from extensions.routers import *
from apps.data.views import *
2021-11-04 23:49:56 +08:00
router = BaseRouter()
2021-11-23 03:20:27 +08:00
router.register('warehouses', WarehouseViewSet, 'warehouse')
router.register('clients', ClientViewSet, 'client')
router.register('suppliers', SupplierViewSet, 'supplier')
router.register('accounts', AccountViewSet, 'account')
router.register('charge_items', ChargeItemViewSet, 'charge_item')
router.register('client_categories', ClientCategoryViewSet, 'client_category')
router.register('supplier_categories', SupplierCategoryViewSet, 'supplier_category')
router.register('goods_categories', GoodsCategoryViewSet, 'goods_category')
router.register('goods_units', GoodsUnitViewSet, 'goods_unit')
2021-11-04 23:49:56 +08:00
urlpatterns = router.urls