6
0

urls.py 370 B

1234567891011121314
  1. from openlocal.apiviews import *
  2. from rest_framework import routers
  3. from django.urls import path, include, re_path
  4. from . import views
  5. app_name = 'webservice'
  6. router = routers.DefaultRouter()
  7. router.register(r'orderslocal', OrdersLocalMVS)
  8. urlpatterns = [
  9. path("", views.order_reg, name="order_reg"),
  10. path('api/', include(router.urls), name="openlocalapi"),
  11. ]