urls.py 766 B

12345678910111213141516171819202122
  1. # urls.py
  2. from django.urls import path,re_path
  3. from . import views
  4. urlpatterns = [
  5. path('createInboundApply', views.InboundApplyCreate.as_view()),
  6. path('createOutboundApply', views.OutboundApplyCreate.as_view()),
  7. path('updateBatchInfo', views.BatchUpdate.as_view()),
  8. path('productInfo', views.ProductInfo.as_view()),
  9. path('inboundBills', views.InboundBills.as_view({"get": "list"}),name="inboundBills"),
  10. re_path(r'^inboundBills/(?P<pk>\d+)/$', views.InboundBills.as_view({
  11. 'get': 'retrieve'
  12. }), name="inboundBills_1"),
  13. path('materials', views.Materials.as_view({"get": "list"}),name="Materials"),
  14. re_path(r'^materials/(?P<pk>\d+)/$', views.Materials.as_view({
  15. 'get': 'retrieve',
  16. }), name="Materials_1"),
  17. ]