diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Api.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/Api.js b/src/Api.js deleted file mode 100644 index 3999b7a..0000000 --- a/src/Api.js +++ /dev/null @@ -1,15 +0,0 @@ -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; |