35 lines
2.0 KiB
Python
35 lines
2.0 KiB
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = 'recipes'
|
|
|
|
urlpatterns = [
|
|
path('', views.library, name='list'),
|
|
path('cook-later/', views.cook_later_list, name='cook-later'),
|
|
path('cook-later/<uuid:identifier>/remove/', views.cook_later_remove, name='cook-later-remove'),
|
|
path('discover/<uuid:identifier>/', views.discover_detail, name='discover-detail'),
|
|
path('match/', views.match, name='match'),
|
|
path('match/reset/', views.match_reset, name='match-reset'),
|
|
path('match/<uuid:identifier>/select/', views.match_select, name='match-select'),
|
|
path('match/<uuid:identifier>/photo/', views.match_photo, name='match-photo'),
|
|
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>/cook/', views.cook, name='cook'),
|
|
path('<uuid:identifier>/cook/finish/', views.cook_finish, name='cook-finish'),
|
|
path('<uuid:identifier>/autosave/', views.autosave, name='autosave'),
|
|
path('<uuid:identifier>/variations/new/', views.create_variation, name='create-variation'),
|
|
path('<uuid:identifier>/stock/', views.stock_preview, name='stock-preview'),
|
|
path('<uuid:identifier>/stock/confirm/', views.stock_confirm, name='stock-confirm'),
|
|
path('stock-use/<uuid:identifier>/undo/', views.stock_undo, name='stock-undo'),
|
|
path('<uuid:identifier>/ingredients/<int:ingredient_id>/substitutions/new/',
|
|
views.substitution_add, name='substitution-add'),
|
|
path('<uuid:identifier>/ingredients/<int:ingredient_id>/substitutions/<int:substitution_id>/delete/',
|
|
views.substitution_delete, name='substitution-delete'),
|
|
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'),
|
|
]
|