Ver código fonte

Fix articles request bug

Carlos Hernandez 3 anos atrás
pai
commit
6dc22836b5
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      app_template/www/fetch_articles.js

+ 2
- 2
app_template/www/fetch_articles.js Ver arquivo

@@ -1,10 +1,10 @@
1 1
 var articles;
2
-axios.get("136.145.231.32:8080")
2
+axios.get("http://136.145.231.32:8080/")
3 3
     .then(response => {
4 4
         articles = response.data;
5 5
         for (let i = 0; i < articles.length; i++) {
6 6
             let element = articles[i];
7
-            axios.get(`136.145.231.32:8080/${element}`)
7
+            axios.get(`http://136.145.231.32:8080/${element}`)
8 8
                 .then(response => {
9 9
                     let articlesHeading = document.querySelector("#articles-heading").parentElement;
10 10
                     let articleButton = document.createElement("button");