urls.py 693 B

123456789101112131415
  1. from django.urls import path
  2. from .views import UBCMEListView, UBCMERetrieveUpdateDestroyView, UBCListView, UBCMECOLLListView, TopReadAPIView, \
  3. UBCMECreateView, CheckBookInBookmarksView, CountReadBooksView
  4. urlpatterns = [
  5. path("", UBCMEListView.as_view()),
  6. path("create/", UBCMECreateView.as_view()),
  7. path("<uuid:uuid>/", UBCMERetrieveUpdateDestroyView.as_view(lookup_field="uuid")),
  8. path("<uuid:collection_uuid>/books/", UBCMECOLLListView.as_view()),
  9. path("all/", UBCListView.as_view()),
  10. path("top/", TopReadAPIView.as_view()),
  11. path("bookmarked/<uuid:book_uuid>/", CheckBookInBookmarksView.as_view()),
  12. path("read_books/", CountReadBooksView.as_view())
  13. ]