summaryrefslogtreecommitdiff
path: root/kitchen/urls_htmx.py
diff options
context:
space:
mode:
Diffstat (limited to 'kitchen/urls_htmx.py')
-rw-r--r--kitchen/urls_htmx.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/kitchen/urls_htmx.py b/kitchen/urls_htmx.py
new file mode 100644
index 0000000..390f6c1
--- /dev/null
+++ b/kitchen/urls_htmx.py
@@ -0,0 +1,17 @@
+from django.urls import path
+from . import views_htmx
+
+urlpatterns = [
+ # Full pages
+ path("", views_htmx.pantry_page, name="app-pantry"),
+ path("recipes/", views_htmx.recipes_page, name="app-recipes"),
+ path("shopping/", views_htmx.shopping_page, name="app-shopping"),
+ path("log/", views_htmx.log_page, name="app-log"),
+
+ # HTMX partials
+ path("pantry/add/", views_htmx.pantry_add, name="app-pantry-add"),
+ path("pantry/<int:item_id>/delete/", views_htmx.pantry_delete, name="app-pantry-delete"),
+ path("shopping/generate/", views_htmx.shopping_generate, name="app-shopping-generate"),
+ path("shopping/<int:item_id>/toggle/", views_htmx.shopping_toggle, name="app-shopping-toggle"),
+ path("shopping/clear/", views_htmx.shopping_clear, name="app-shopping-clear"),
+]