add new fields to rancher
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from .viewsets import product_api
|
||||
|
||||
router = DefaultRouter()
|
||||
router.register(r'product', product_api.ProductViewSet, basename='product')
|
||||
router.register(r'pos_free_products', product_api.POSFreeProductsViewSet, basename='pos_free_products')
|
||||
|
||||
urlpatterns = [
|
||||
path('v1/', include(router.urls))
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user