diff options
Diffstat (limited to 'kitchen/urls.py')
| -rw-r--r-- | kitchen/urls.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kitchen/urls.py b/kitchen/urls.py index ff3745f..69d2f30 100644 --- a/kitchen/urls.py +++ b/kitchen/urls.py @@ -16,6 +16,9 @@ router.register(r"cook-log", views.CookLogViewSet) router.register(r"shopping-list", views.ShoppingListItemViewSet) urlpatterns = [ + # Must precede the router include — otherwise the PantryItem detail route + # (pantry/<pk>/) captures "set-state" as a pk. + path("pantry/set-state/", views.set_pantry_state, name="set-pantry-state"), path("", include(router.urls)), path("what-can-i-cook/", views.what_can_i_cook, name="what-can-i-cook"), path("log-cook/", views.log_cook, name="log-cook"), |
