Source: data/getRequest.js

/**
 * The function `httpGet` is an asynchronous function that performs an HTTP GET request to a specified
 * URL and returns the JSON response.
 * @param theUrl - The `theUrl` parameter in the `httpGet` function is the URL of the resource you want
 * to make a GET request to. This function uses the `fetch` API to make an asynchronous HTTP GET
 * request to the specified URL and returns the parsed JSON response.
 * @returns The `httpGet` function is returning the results of the HTTP GET request made to the
 * specified URL. The results are obtained by parsing the response body as JSON data.
 */
export async function httpGet(theUrl) {
  const response = await fetch(theUrl);
  const results = await response.json();
  return results;
}