example-of-crud-in-django-w.../app/libros/urls.py

12 lines
246 B
Python
Raw Normal View History

2021-07-12 07:01:26 +02:00
# app/libros/urls.py
from django.urls import path
2021-07-12 23:47:31 +02:00
from app.libros.views import *
2021-07-12 07:01:26 +02:00
urlpatterns = [
path("ping/", ping, name="ping"),
path("api/libros/", LibrosList.as_view()),
2021-07-12 23:47:31 +02:00
path("api/libros/<int:pk>/", LibrosDetails.as_view()),
]