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