from django.urls import include, path
from rest_framework.routers import DefaultRouter

from . import views

router = DefaultRouter()
router.register(r'materials', views.MaterialViewSet, basename='material')
router.register(
    r'stock-transactions',
    views.StockTransactionViewSet,
    basename='stock-transaction',
)

urlpatterns = [
    path('', include(router.urls)),
    path('stock-summary/', views.StockSummaryView.as_view(), name='stock-summary'),
    path('fertilizer-stock/', views.FertilizerStockView.as_view(), name='fertilizer-stock'),
]
