Where pipeline and scope in Phoenix router fit in in Elixir

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.

To be able to use it, you don’t need to fully understand it.
Just keep it simple and read:

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.