20 lines
740 B
Python
20 lines
740 B
Python
from django.db.models import base
|
|
from rest_framework import urlpatterns
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from apps.srm.views import AtWorkCountView, GanttPlan, OrderCountView, PlanCountView, ProcessNowView, ProcessYieldView, ProductCountView
|
|
|
|
router = DefaultRouter()
|
|
urlpatterns = [
|
|
path('gantt/plan/', GanttPlan.as_view()),
|
|
path('product/count/', ProductCountView.as_view()),
|
|
path('plan/count/', PlanCountView.as_view()),
|
|
path('order/count/', OrderCountView.as_view()),
|
|
path('process/yield/', ProcessYieldView.as_view()),
|
|
path('process/now/', ProcessNowView.as_view()),
|
|
path('at_work/', AtWorkCountView.as_view()),
|
|
path('', include(router.urls)),
|
|
]
|
|
|