HimoolERP/apps/data/urls.py

14 lines
569 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')
2021-12-16 17:54:31 +08:00
router.register('client_categories', ClientCategoryViewSet, 'client_category')
2021-11-23 03:20:27 +08:00
router.register('clients', ClientViewSet, 'client')
2021-12-16 17:54:31 +08:00
router.register('supplier_categories', SupplierCategoryViewSet, 'supplier_category')
2021-11-23 03:20:27 +08:00
router.register('suppliers', SupplierViewSet, 'supplier')
router.register('accounts', AccountViewSet, 'account')
router.register('charge_items', ChargeItemViewSet, 'charge_item')
2021-11-04 23:49:56 +08:00
urlpatterns = router.urls