add product in comanda

This commit is contained in:
2024-12-13 10:48:18 -03:00
parent a3bb7bb674
commit b74d817730
12 changed files with 61 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
from django.urls import path
from comandas import htmx_views
from . import views
urlpatterns = [
@@ -10,3 +12,13 @@ urlpatterns = [
]
htmx_urlpatterns = [
path('listProduct/', htmx_views.listProduct, name='listProduct'),
path('addProduct<int:product_id>/<int:comanda_id>/', htmx_views.addProduct, name='addProduct'),
# path('removeProduct/', views.removeProduct, name='removeProduct'),
]
urlpatterns += htmx_urlpatterns