Hello, I’m struggling after upgrading Plug in a project to v1.14.2
In Plug is now a deprecated function called builder_opts()
Regarding the documentation you need to pass an atom to Plug.Builder
https://hexdocs.pm/plug/Plug.Builder.html#builder_opts/0
In the Plug.Router
documentation it is explained, that all the opts passed in use Plug.Router
will be passed to Plug.Builder
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())
...