aboutsummaryrefslogtreecommitdiff
path: root/src/Api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Api.js')
-rw-r--r--src/Api.js15
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;