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('/', views.detail, name='detail'), path('/edit/', views.edit, name='edit'), path('/autosave/', views.autosave, name='autosave'), path('/variations/new/', views.create_variation, name='create-variation'), path('/stock/', views.stock_preview, name='stock-preview'), path('/stock/confirm/', views.stock_confirm, name='stock-confirm'), path('stock-use//undo/', views.stock_undo, name='stock-undo'), path('/ingredients//substitutions/new/', views.substitution_add, name='substitution-add'), path('/ingredients//substitutions//delete/', views.substitution_delete, name='substitution-delete'), path('/delete/', views.delete, name='delete'), path('/favourite/', views.toggle_favourite, name='favourite'), path('/photo/', views.photo, name='photo'), ]