You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a filter that parses req$postBody and rewrites req$PATH_INFO based on the value of one of its fields. For example, if I were to POST JSON containing
{ "tag" : "foo" }
to endpoint "/bar", at the conclusion of the filter, req$PATH_INFO is changed from "/bar" to "/foo/bar"; however, even though I have attached functions to both endpoints "/bar" and "/foo/bar" neither one of these is invoked: I simply receive a "404 - Resource Not Found." My understanding/expectation is that "plumber::forward()" would route the request based on the value of req$PATH_INFO, and the question was whether this routing was determined either before or after the filter was applied: if before, I would see the output of the function attached to "/bar" and if after, that associated with "/foo/bar." The fact that I get neither seems strange.
The text was updated successfully, but these errors were encountered:
I have created a filter that parses req$postBody and rewrites req$PATH_INFO based on the value of one of its fields. For example, if I were to POST JSON containing
to endpoint "/bar", at the conclusion of the filter, req$PATH_INFO is changed from "/bar" to "/foo/bar"; however, even though I have attached functions to both endpoints "/bar" and "/foo/bar" neither one of these is invoked: I simply receive a "404 - Resource Not Found." My understanding/expectation is that "plumber::forward()" would route the request based on the value of req$PATH_INFO, and the question was whether this routing was determined either before or after the filter was applied: if before, I would see the output of the function attached to "/bar" and if after, that associated with "/foo/bar." The fact that I get neither seems strange.
The text was updated successfully, but these errors were encountered: