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"),
|
2021-07-13 19:37:12 +02:00
|
|
|
path("api/libros/", LibrosList.as_view(), name="libros_list"),
|
|
|
|
path("api/libros/<int:pk>/", LibrosDetails.as_view(), name="libros_details"),
|
2021-07-12 23:47:31 +02:00
|
|
|
]
|