example-of-crud-in-django-w.../app/libros/urls.py
2021-07-12 23:47:31 +02:00

12 lines
246 B
Python

# app/libros/urls.py
from django.urls import path
from app.libros.views import *
urlpatterns = [
path("ping/", ping, name="ping"),
path("api/libros/", LibrosList.as_view()),
path("api/libros/<int:pk>/", LibrosDetails.as_view()),
]