aboutsummaryrefslogtreecommitdiff
path: root/src/Api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Api.js')
-rw-r--r--src/Api.js20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/Api.js b/src/Api.js
index b564aa2..3999b7a 100644
--- a/src/Api.js
+++ b/src/Api.js
@@ -1,13 +1,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)
+ 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;
+ return ret;
}
-export default getBoards; \ No newline at end of file
+export default getBoards;