Browse Source

Fix articles request bug

Carlos Hernandez 3 years ago
parent
commit
6dc22836b5
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app_template/www/fetch_articles.js

+ 2
- 2
app_template/www/fetch_articles.js View File

@@ -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");