生产子计划接口地址
This commit is contained in:
parent
85b21dcbac
commit
6d804b164c
|
@ -1,11 +1,12 @@
|
|||
from apps.pm.views import ProductionPlanViewSet, ResourceViewSet
|
||||
from apps.pm.views import ProductionPlanViewSet, ResourceViewSet, SubProductionPlanViewSet
|
||||
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('production_plan', ProductionPlanViewSet, basename='production_plan')
|
||||
router.register('subproduction_plan', SubProductionPlanViewSet, basename='subproduction_plan')
|
||||
router.register('resource', ResourceViewSet, basename='resource')
|
||||
urlpatterns = [
|
||||
path('', include(router.urls)),
|
||||
|
|
Loading…
Reference in New Issue