-
Hi 👋🏻 Context: Let's imagine the following routes
Issue Both routes ($id and detail) use What's the correct way to manage the error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
in your case, if you want to run |
Beta Was this translation helpful? Give feedback.
namedAction
will work per route, so if you have a named action in one route and another named action in another route the library can't know based on the name what route to call, you POST to a route and the action function runs, then usenamedAction
to branch out inside the action function what it's doing.in your case, if you want to run
duplicate
you need to send the post to/products/:id
and not/products/:id/detail
.