123456789101112131415 |
- from django.urls import path
- from .views import UBCMEListView, UBCMERetrieveUpdateDestroyView, UBCListView, UBCMECOLLListView, TopReadAPIView, \
- UBCMECreateView, CheckBookInBookmarksView, CountReadBooksView
- urlpatterns = [
- path("", UBCMEListView.as_view()),
- path("create/", UBCMECreateView.as_view()),
- path("<uuid:uuid>/", UBCMERetrieveUpdateDestroyView.as_view(lookup_field="uuid")),
- path("<uuid:collection_uuid>/books/", UBCMECOLLListView.as_view()),
- path("all/", UBCListView.as_view()),
- path("top/", TopReadAPIView.as_view()),
- path("bookmarked/<uuid:book_uuid>/", CheckBookInBookmarksView.as_view()),
- path("read_books/", CountReadBooksView.as_view())
- ]
|