You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
1.1 KiB

from django.urls import path
from .views import (
AddBookmarkView, RemoveBookmarkView, BookmarkStatusView,
AddBookmarkListView, RemoveBookmarkListView, BookmarkListView,
AddRateView, RemoveRateView, RateStatusView, AverageRateView
)
app_name = 'bookmark'
urlpatterns = [
# Bookmark URLs
path('', BookmarkListView.as_view(), name='bookmark_list_root'),
path('list/', BookmarkListView.as_view(), name='bookmark_list'),
path('add/', AddBookmarkView.as_view(), name='add_bookmark'),
path('add-list/', AddBookmarkListView.as_view(), name='add_bookmark_list'),
path('remove/', RemoveBookmarkView.as_view(), name='remove_bookmark'),
path('remove-list/', RemoveBookmarkListView.as_view(), name='remove_bookmark_list'),
path('status/', BookmarkStatusView.as_view(), name='bookmark_status'),
# Rate URLs
path('rate/add/', AddRateView.as_view(), name='add_rate'),
path('rate/remove/', RemoveRateView.as_view(), name='remove_rate'),
path('rate/status/', RateStatusView.as_view(), name='rate_status'),
path('rate/average/', AverageRateView.as_view(), name='average_rate'),
]