1
0

urls.py 661 B

123456789101112131415161718
  1. from 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_list/', login_required(OrdersListView.as_view()), name="order_list"),
  12. path('order_reg/', login_required(OrderReg.as_view()), name="order_reg"),
  13. path('', views.registration, name="registration"),
  14. path('api/', include(router.urls), name="webservice_running_api"),
  15. ]