Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 3c8dd963 authored by peter_rabbit's avatar peter_rabbit
Browse files

fix articles url

parent f91b2443
No related branches found
No related tags found
No related merge requests found
......@@ -2,5 +2,5 @@ module.exports = {
server_url: `${location.origin}${
location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : ""
}`,
in_construction: true,
in_construction: false,
};
......@@ -411,7 +411,7 @@ class GameArticles {
}
loadArticles() {
loadArticles(`${articles_url}/games`)
loadArticles(`${articles_url}games`)
.then(articles => {
Promise.all(
articles.map(async a => {
......
......@@ -103,7 +103,7 @@ class NewsArticles {
}
loadArticles() {
loadArticles(`${articles_url}/news`).then(articles => {
loadArticles(`${articles_url}news`).then(articles => {
this.state.articles = articles;
this.state.showArticleIndex = this.state.articles.length - 1;
this.refresh();
......
......@@ -400,7 +400,7 @@ class SoftwareArticles {
}
loadArticles() {
loadArticles(`${articles_url}/software`)
loadArticles(`${articles_url}software`)
.then(articles => {
this.state.articles = articles;
this.refresh();
......
......@@ -17,7 +17,7 @@ class NewsArticles {
}
loadArticles() {
loadArticles(`${articles_url}/news`).then(articles => {
loadArticles(`${articles_url}news`).then(articles => {
this.state.articles = articles;
this.state.showArticleIndex = this.state.articles.length - 1;
this.refresh();
......
......@@ -16,7 +16,7 @@ class GameArticles {
}
loadArticles() {
loadArticles(`${articles_url}/games`)
loadArticles(`${articles_url}games`)
.then(articles => {
Promise.all(
articles.map(async a => {
......
......@@ -129,7 +129,7 @@ class SoftwareArticles {
}
loadArticles() {
loadArticles(`${articles_url}/software`)
loadArticles(`${articles_url}software`)
.then(articles => {
this.state.articles = articles;
this.refresh();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment