24 lines
1.3 KiB
Python
24 lines
1.3 KiB
Python
from django.db.models import base
|
|
from rest_framework import urlpatterns
|
|
from apps.mtm.views import InputMaterialViewSet, MaterialViewSet, OtherMaterialViewSet, OutputMaterialViewSet, PackItemViewSet, ProcessViewSet, RecordFormFieldViewSet, RecordFormViewSet, StepViewSet, SubProductionViewSet, TechDocViewSet, UsedStepViewSet
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
router = DefaultRouter()
|
|
router.register('material', MaterialViewSet, basename='material')
|
|
router.register('packitem', PackItemViewSet, basename='packitem')
|
|
router.register('process', ProcessViewSet, basename='process')
|
|
router.register('step', StepViewSet, basename='step')
|
|
router.register('subproducation', SubProductionViewSet, basename='subproducation')
|
|
router.register('inputmaterial', InputMaterialViewSet, basename='inputmaterial')
|
|
router.register('outputmaterial', OutputMaterialViewSet, basename='outputmaterial')
|
|
router.register('othermaterial', OtherMaterialViewSet, basename='othermaterial')
|
|
router.register('usedstep', UsedStepViewSet, basename='usedstep')
|
|
router.register('recordform', RecordFormViewSet, basename='recordform')
|
|
router.register('recordform-field', RecordFormFieldViewSet, basename='recordform-field')
|
|
router.register('techdoc', TechDocViewSet, basename='techdoc')
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
]
|
|
|