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
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
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)),
|
|
|
|
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>/update', views.update, name='edit'),
|
|
|
|
path('bookmarks/<int:bookmark_id>/remove', views.remove, name='remove'),
|
2019-06-27 06:09:51 +00:00
|
|
|
]
|