<gh_stars>0
from django.urls import path, include
from .views import AllProductsView, OrderView
from rest_framework.routers import DefaultRouter, SimpleRouter

app_name = 'shop'
router = SimpleRouter()
router.register('products', AllProductsView)
router.register('order', OrderView)

urlpatterns = [
]

urlpatterns += router.urls

from django.urls import path, include
from .views import AllProductsView, OrderView
from rest_framework.routers import DefaultRouter, SimpleRouter

app_name = 'shop'
router = SimpleRouter()
router.register('products', AllProductsView)
router.register('order', OrderView)

urlpatterns = [
]

urlpatterns += router.urls