mirror of
https://git.kotyczka.ch/developers/django.git
synced 2025-04-07 00:03:32 +02:00
13 lines
359 B
Python
13 lines
359 B
Python
from django.urls import path,include
|
|
from rest_framework import routers
|
|
|
|
from . import views
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'item', views.ShoppingItemList)
|
|
router.register(r'product', views.ProductList)
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
|
|
] |