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
|
2019-07-01 23:28:02 +00:00
|
|
|
from .views import api
|
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-06-28 05:33:08 +00:00
|
|
|
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'),
|
2019-07-01 23:28:02 +00:00
|
|
|
# API
|
|
|
|
path('api/website_metadata', api.website_metadata, name='api.website_metadata'),
|
2019-06-27 06:09:51 +00:00
|
|
|
]
|