mirror of
https://github.com/himool/HimoolERP.git
synced 2024-11-15 11:58:42 +08:00
13 lines
569 B
Python
13 lines
569 B
Python
from extensions.routers import *
|
|
from apps.data.views import *
|
|
|
|
|
|
router = BaseRouter()
|
|
router.register('warehouses', WarehouseViewSet, 'warehouse')
|
|
router.register('client_categories', ClientCategoryViewSet, 'client_category')
|
|
router.register('clients', ClientViewSet, 'client')
|
|
router.register('supplier_categories', SupplierCategoryViewSet, 'supplier_category')
|
|
router.register('suppliers', SupplierViewSet, 'supplier')
|
|
router.register('accounts', AccountViewSet, 'account')
|
|
router.register('charge_items', ChargeItemViewSet, 'charge_item')
|
|
urlpatterns = router.urls
|