linkding/bookmarks/urls.py
Sascha Ißbrücker 1b7f57999d Improve URL handling
Extract bookmark list tag
2019-07-06 17:17:14 +02:00

24 lines
1017 B
Python

from django.conf.urls import url
from django.urls import path
from django.views.generic import RedirectView
from bookmarks import views
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/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/<int:bookmark_id>/remove', views.bookmarks.remove, name='remove'),
path('bookmarklet', views.bookmarks.bookmarklet, name='bookmarklet'),
# Settings
path('settings', views.settings.index, name='settings.index'),
path('settings/import', views.settings.bookmark_import, name='settings.import'),
# API
path('api/website_metadata', views.api.website_metadata, name='api.website_metadata'),
]