14 lines
456 B
Python
14 lines
456 B
Python
from apps.pm.views import ProductionPlanViewSet, ResourceViewSet
|
|
from django.db.models import base
|
|
from rest_framework import urlpatterns
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
router = DefaultRouter()
|
|
router.register('productionplan', ProductionPlanViewSet, basename='productionplan')
|
|
router.register('resource', ResourceViewSet, basename='resource')
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
]
|
|
|