urls.py 894 B

1234567891011121314151617181920
  1. from webservice_running.apiviews import *
  2. from rest_framework import routers
  3. from django.urls import path, include, re_path
  4. from django.contrib.auth.decorators import login_required
  5. from webservice_running import views
  6. from webservice_running.views import *
  7. app_name = 'webservice_running'
  8. router = routers.DefaultRouter()
  9. router.register(r'webservice', OrdersLocalMVS)
  10. urlpatterns = [
  11. path('order_reg/edit/<int:pk>', login_required(OrderRegUpdateView.as_view()), name='order_reg/edit/'),
  12. path('order_reg/delete/<int:pk>', login_required(OrderRegDelete.as_view()), name='order_reg/delete/'),
  13. path('order_list/', login_required(OrdersListView.as_view()), name="order_list"),
  14. path('order_reg/', login_required(OrderReg.as_view()), name="order_reg"),
  15. path('', views.registration, name="registration"),
  16. path('api/', include(router.urls), name="webservice_running_api"),
  17. ]