From aefc113f669966f5c779b2d36ee6a2c4a1ba05f6 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 27 Aug 2021 12:05:00 +0200 Subject: [PATCH] Afficher le chemin correcte vers le fichier Fixes fabmob/velolibre#24 --- source/Article.js | 4 ++-- source/wiki.js | 2 +- "source/\303\211tape.js" | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Article.js b/source/Article.js index 404ed29..6517600 100644 --- a/source/Article.js +++ b/source/Article.js @@ -26,7 +26,7 @@ const repo = 'laem/velolibre' const getLastEdit = (name, action) => fetch( - `https://api.github.com/repos/${repo}/commits?path=src%2Farticles%2F${name}.md&page=1&per_page=1` + `https://api.github.com/repos/${repo}/commits?path=source%2Farticles%2F${name}.md&page=1&per_page=1` ) .then((res) => res.json()) .then((json) => { @@ -77,7 +77,7 @@ export default ({}) => { Mis à jour le{' '} {lastEditDate} diff --git a/source/wiki.js b/source/wiki.js index cf637d0..c97ddd9 100644 --- a/source/wiki.js +++ b/source/wiki.js @@ -33,7 +33,7 @@ const repo = 'laem/velolibre' export const getLastEdit = (name, action) => fetch( - `https://api.github.com/repos/${repo}/commits?path=src%2Farticles%2F${name}.md&page=1&per_page=1` + `https://api.github.com/repos/${repo}/commits?path=source%2Farticles%2F${name}.md&page=1&per_page=1` ) .then((res) => res.json()) .then((json) => { diff --git "a/source/\303\211tape.js" "b/source/\303\211tape.js" index 7452850..62b58c4 100644 --- "a/source/\303\211tape.js" +++ "b/source/\303\211tape.js" @@ -52,7 +52,7 @@ export default ({}) => { Mis à jour le{' '} {lastEditDate}