mirror of
https://github.com/sissbruecker/linkding
synced 2024-11-10 06:04:15 +00:00
16 lines
561 B
Python
16 lines
561 B
Python
from django.conf.urls import url
|
|
from django.urls import path
|
|
from django.views.generic import RedirectView
|
|
|
|
from . 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.index, name='index'),
|
|
path('bookmarks/new', views.new, name='new'),
|
|
path('bookmarks/<int:bookmark_id>/edit', views.edit, name='edit'),
|
|
path('bookmarks/<int:bookmark_id>/remove', views.remove, name='remove'),
|
|
]
|