recipes_api/app/recipe/urls.py
devfzn 40bbaff60b
creación TAG API
test, model, list, serializers, views & urls
2023-10-10 00:08:52 -03:00

23 lines
361 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)
router.register('tags', views.TagViewSet)
app_name = 'recipe'
urlpatterns = [
path('', include(router.urls)),
]