Files
Django_TasksApp/main/recipes/urls.py
T
2026-10-12 09:37:04 +02:00

26 lines
1.3 KiB
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>/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'),
]