19 lines
758 B
Python
19 lines
758 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = 'recipes'
|
|
|
|
urlpatterns = [
|
|
path('', views.library, name='list'),
|
|
path('new/', views.create, name='create'),
|
|
path('new/autosave/', views.autosave_new, name='autosave-new'),
|
|
path('<uuid:identifier>/', views.detail, name='detail'),
|
|
path('<uuid:identifier>/edit/', views.edit, name='edit'),
|
|
path('<uuid:identifier>/autosave/', views.autosave, name='autosave'),
|
|
path('<uuid:identifier>/variations/new/', views.create_variation, name='create-variation'),
|
|
path('<uuid:identifier>/delete/', views.delete, name='delete'),
|
|
path('<uuid:identifier>/favourite/', views.toggle_favourite, name='favourite'),
|
|
path('<uuid:identifier>/photo/', views.photo, name='photo'),
|
|
]
|