19 lines
306 B
Python
19 lines
306 B
Python
"""
|
|
URL mappings for the recipe app.
|
|
"""
|
|
from django.urls import path, include
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from recipe import views
|
|
|
|
|
|
router = DefaultRouter()
|
|
router.register('recipes', views.RecipeViewSet)
|
|
|
|
app_name = 'recipe'
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
]
|