Hi im very new to elixir and Phoenix and i am trying to figure out how the scope and pipeline parts of the router.ex file in Phoenix fit into elixir. Im pretty confused on how it works too.
Basically pipelines are configurations for all of the steps you want to be executed while handling a request.
Also the pipeline will halt when something is not right (maybe authentication failed or something).
Having different scopes means you can have different pipelines.
Maybe one for “/admin” and one for “/” where admin sits behind a ip whitelist you implemented with a plug which you put into the admin pipeline.