2023-10-09 03:25:09 -03:00
|
|
|
"""
|
|
|
|
URL mappings for the recipe app.
|
|
|
|
"""
|
2023-10-10 00:08:52 -03:00
|
|
|
from django.urls import (
|
|
|
|
path,
|
|
|
|
include,
|
|
|
|
)
|
2023-10-09 03:25:09 -03:00
|
|
|
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
|
|
|
|
from recipe import views
|
|
|
|
|
|
|
|
|
|
|
|
router = DefaultRouter()
|
|
|
|
router.register('recipes', views.RecipeViewSet)
|
2023-10-10 00:08:52 -03:00
|
|
|
router.register('tags', views.TagViewSet)
|
2023-10-09 03:25:09 -03:00
|
|
|
|
|
|
|
app_name = 'recipe'
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('', include(router.urls)),
|
|
|
|
]
|