We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3222a4 commit 1781d5dCopy full SHA for 1781d5d
1 file changed
lib/ash_json_api/controllers/router.ex
@@ -155,6 +155,10 @@ defmodule AshJsonApi.Controllers.Router do
155
|> Map.update!(:path_params, fn path_params ->
156
path_params
157
|> Kernel.||(%{})
158
+ # Filter out glob params injected by Plug.Router's `forward` macro,
159
+ # which are always lists (e.g. %{"glob" => ["path", "segments"]}).
160
+ # Legitimate path params from the outer router are strings.
161
+ |> Map.reject(fn {_k, v} -> is_list(v) end)
162
|> Map.merge(params)
163
end)
164
|> then(fn conn ->
0 commit comments