linkding/bookmarks/urls.py

22 lines
881 B
Python
Raw Normal View History

2019-06-28 05:33:08 +00:00
from django.conf.urls import url
2019-06-27 06:09:51 +00:00
from django.urls import path
2019-06-28 05:33:08 +00:00
from django.views.generic import RedirectView
2019-06-27 06:09:51 +00:00
2019-07-03 15:18:29 +00:00
from bookmarks import views
2019-06-27 06:09:51 +00:00
app_name = 'bookmarks'
urlpatterns = [
2019-06-28 05:33:08 +00:00
# Redirect root to bookmarks index
url(r'^$', RedirectView.as_view(pattern_name='bookmarks:index', permanent=False)),
2019-06-28 23:08:22 +00:00
# Bookmarks
2019-07-05 08:04:52 +00:00
path('bookmarks', views.bookmarks_index, name='index'),
path('bookmarks/new', views.bookmarks_new, name='new'),
path('bookmarks/<int:bookmark_id>/edit', views.bookmarks_edit, name='edit'),
path('bookmarks/<int:bookmark_id>/remove', views.bookmarks_remove, name='remove'),
# Settings
path('settings', views.settings_index, name='settings_index'),
path('settings/import', views.settings_bookmark_import, name='settings_import'),
# API
2019-07-05 08:04:52 +00:00
path('api/website_metadata', views.api.api_website_metadata, name='api.website_metadata'),
2019-06-27 06:09:51 +00:00
]