2024-05-24 19:49:23 +00:00
|
|
|
# Copyright (C) 2018-2024 by BDE ENS Paris-Saclay
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2024-05-21 09:21:13 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2024-05-24 19:49:23 +00:00
|
|
|
app_name = 'food'
|
|
|
|
|
2024-05-21 09:21:13 +00:00
|
|
|
urlpatterns = [
|
2024-08-13 00:07:32 +00:00
|
|
|
path('', views.TransformedListView.as_view(), name='food_list'),
|
2024-07-03 17:20:01 +00:00
|
|
|
path('<int:slug>', views.QRCodeView.as_view(), name='qrcode_view'),
|
|
|
|
path('detail/<int:pk>', views.FoodView.as_view(), name='food_view'),
|
2024-05-24 19:49:23 +00:00
|
|
|
|
2024-07-03 17:20:01 +00:00
|
|
|
path('<int:slug>/create_qrcode', views.QRCodeCreateView.as_view(), name='qrcode_create'),
|
|
|
|
path('<int:slug>/create_qrcode/basic', views.QRCodeBasicFoodCreateView.as_view(), name='qrcode_basic_create'),
|
|
|
|
path('create/transformed', views.TransformedFoodCreateView.as_view(), name='transformed_create'),
|
|
|
|
path('update/basic/<int:pk>', views.BasicFoodUpdateView.as_view(), name='basic_update'),
|
|
|
|
path('update/transformed/<int:pk>', views.TransformedFoodUpdateView.as_view(), name='transformed_update'),
|
2024-07-05 09:57:44 +00:00
|
|
|
path('add/<int:pk>', views.AddIngredientView.as_view(), name='add_ingredient'),
|
2024-07-03 17:20:01 +00:00
|
|
|
]
|