View Source Unplug.Compose.All (Unplug v1.1.0)
Given a list of predicates, execute the plug if all of the predicates return true.
Usage:
plug Unplug,
if: {Unplug.Compose.All, [
{Unplug.Predicates.AppConfigEquals, {:my_app, :some_config, :enabled}},
MyApp.CustomPredicate
]},
do: MyApp.Plug