<filename>django/api/urls.py
from django.urls import path, include
from rest_framework import routers
from recipes import views

router = routers.DefaultRouter()

# Register API endpoints that map to models
# router.register(r'images', views.ImageViewSet)
router.register(r'recipes', views.RecipeViewSet)
router.register(r'ingredients', views.IngredientViewSet)

urlpatterns = [
    path('', include(router.urls)),
]

<filename>django/api/urls.py
from django.urls import path, include
from rest_framework import routers
from recipes import views

router = routers.DefaultRouter()

# Register API endpoints that map to models
# router.register(r'images', views.ImageViewSet)
router.register(r'recipes', views.RecipeViewSet)
router.register(r'ingredients', views.IngredientViewSet)

urlpatterns = [
    path('', include(router.urls)),
]

# Register API endpoints that map to models # router.register(r'images', views.ImageViewSet)