3 ms·
Here's [0] a pretty good explanation of how Plug and Conn fit into the mix. Phoenix is just a pipeline of Plugs, which in tern are just modules with init/1 and
by _asummers 10y ago
Here's [0] a pretty good explanation of how Plug and Conn fit into the mix. Phoenix is just a pipeline of Plugs, which in tern are just modules with init/1 and call/2 functions. Controllers, routes, all of it is just Plugs under the hood. This should help you get your bearings.
[0] http://shankardevy.github.io/code/elixir-phoenix-conn-request-life-cycle/ http://shankardevy.github.io/code/elixir-phoenix-conn-reques...