src/static/js/admin.js
// Get the JSON response from a URL
Get the JSON response from a URL
Get the JSON response from a URL
async function fetchJSON(url, options) {
  const res = await fetch(url, options);
  const resJSON = await res.json();
  return resJSON;
}
async function fetchJSON ( url , options ) { const res = await fetch ( url , options ) ; const resJSON = await res . json ( ) ; return resJSON ; }
Get the JSON response from a URL
Get the JSON response from a URL