Replacing the Loading and Displaying of Bands

In this lesson, you’ll learn how to convert the band loading process from Plain Old Java Object (POJOs) to a fetch request.

We'll cover the following

fetch request

Following the flow of data in our application, it makes sense to start by converting the loading of bands. Instead of using the list of POJOs, we’ll issue a fetch request and use the list of bands in the response as our primary data. All this takes place in the bands route, so let’s open that file and paste in the following content:

Get hands-on with 1200+ tech skills courses.