Hello, I’m struggling after upgrading Plug in a project to v1.14.2
In Plug is now a deprecated function called
Regarding the documentation you need to pass an atom to
Plug.Router documentation it is explained, that all the opts passed in
use Plug.Router will be passed to
I tried several ways to give that argument somehow to the builder, but no way. My tests are still failing, because the assigns in the connection remain empty.
Maybe someone knows, how to solve that.
here is my current code which causes the deprecated warning.
defmodule MyApp.Endpoint do use Plug.Router plug(:match) plug(:dispatch, builder_opts()) ...