first push
This commit is contained in:
21
LiveStock/Cooperative/urls.py
Normal file
21
LiveStock/Cooperative/urls.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from django.urls import path, include
|
||||
from LiveStock.Cooperative import views as cooperative_views
|
||||
router = DefaultRouter()
|
||||
router.register(
|
||||
r'cooperative-views',
|
||||
cooperative_views.CooperativeViewSet,
|
||||
basename="cooperative-views"
|
||||
)
|
||||
|
||||
router.register(
|
||||
r'cooperative-warehouse',
|
||||
cooperative_views.CooperativeWarehouseDashboardViewSet,
|
||||
basename="cooperative-warehouse"
|
||||
)
|
||||
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('', include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user