Files
Django_TasksApp/main/recipes/urls.py
T
2026-10-12 16:25:58 +02:00

31 lines
1.6 KiB
Python

from django.urls import path
from . import views
app_name = 'recipes'
urlpatterns = [
path('', views.library, name='list'),
path('match/', views.match, name='match'),
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'),
]