diff options
Diffstat (limited to 'src/Api.js')
-rw-r--r-- | src/Api.js | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -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; |