aboutsummaryrefslogblamecommitdiff
path: root/src/Api.js
blob: b564aa29e5f290e268c7da3b8d78e0a575bb41af (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                           
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;