aboutsummaryrefslogtreecommitdiff
path: root/src/Api.js
blob: 3999b7a719a250ddd26b66823dbe7cf625d8b2b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
async function getBoards() {
  var ret = await fetch("https://bienvenidoainternet.org/cgi/api/boards")
    .then(response => {
      return response.json();
    })
    .then(resource => {
      //console.log(resource["boards"]);
      return resource["boards"];
    })
    .catch(console.error);

  return ret;
}

export default getBoards;