mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-10 06:04:15 +00:00
fec966f687
* Allow marking bookmarks as shared * Add basic share view * Ensure tag names in tag cloud are unique * Filter shared bookmarks by user * Add link for filtering by user * Prevent n+1 queries when rendering bookmark list * Prevent empty query params in return URL * Fix user select template tag name * Create shared bookmarks through API * List shared bookmarks through API * Show bookmark suggestions for shared view * Show unique tags in search suggestions * Sort user options * Add bookmark sharing feature flag * Add test for share setting default * Simplify settings view
34 lines
1.6 KiB
Python
34 lines
1.6 KiB
Python
from django.conf.urls import url
|
|
from django.urls import path, include
|
|
from django.views.generic import RedirectView
|
|
|
|
from bookmarks.api.routes import router
|
|
from bookmarks import views
|
|
from bookmarks.feeds import AllBookmarksFeed, UnreadBookmarksFeed
|
|
|
|
app_name = 'bookmarks'
|
|
urlpatterns = [
|
|
# Redirect root to bookmarks index
|
|
url(r'^$', RedirectView.as_view(pattern_name='bookmarks:index', permanent=False)),
|
|
# Bookmarks
|
|
path('bookmarks', views.bookmarks.index, name='index'),
|
|
path('bookmarks/archived', views.bookmarks.archived, name='archived'),
|
|
path('bookmarks/shared', views.bookmarks.shared, name='shared'),
|
|
path('bookmarks/new', views.bookmarks.new, name='new'),
|
|
path('bookmarks/close', views.bookmarks.close, name='close'),
|
|
path('bookmarks/<int:bookmark_id>/edit', views.bookmarks.edit, name='edit'),
|
|
path('bookmarks/action', views.bookmarks.action, name='action'),
|
|
# Settings
|
|
path('settings', views.settings.general, name='settings.index'),
|
|
path('settings/general', views.settings.general, name='settings.general'),
|
|
path('settings/integrations', views.settings.integrations, name='settings.integrations'),
|
|
path('settings/import', views.settings.bookmark_import, name='settings.import'),
|
|
path('settings/export', views.settings.bookmark_export, name='settings.export'),
|
|
# Toasts
|
|
path('toasts/acknowledge', views.toasts.acknowledge, name='toasts.acknowledge'),
|
|
# API
|
|
path('api/', include(router.urls), name='api'),
|
|
# Feeds
|
|
path('feeds/<str:feed_key>/all', AllBookmarksFeed(), name='feeds.all'),
|
|
path('feeds/<str:feed_key>/unread', UnreadBookmarksFeed(), name='feeds.unread'),
|
|
]
|