Application Inventory
Learn how Phoenix routes request to a LiveView and how LiveView operates those requests in this lesson.
We'll cover the following
So far, we’ve spent all of our time on the backend service that manages products in our catalog. We were lucky because we could focus our exploration on a single API, the Catalog
context.
In the LiveView, we’re not so lucky. There are nearly a dozen files that we need to worry about. It would be nice to start with a common interface for our user-facing features.
It turns out we do have such an interface, but it’s not an Elixir API. Instead, it’s a list of the routes a user can access. That’s right, the routes in pento/lib/pento_web/router.ex
are an API.
Let’s take a look at the LiveView routes we generated in the last few lessons.
Get hands-on with 1200+ tech skills courses.