Simplification gridsome.server.js / Ajout de l'introduction

This commit is contained in:
Tibo
2019-12-20 11:38:00 +01:00
parent f5484bb1c3
commit c4c6349a68
3 changed files with 23 additions and 7 deletions
+1 -5
View File
@@ -19,11 +19,7 @@ module.exports = function(api) {
data
} = res[index];
for (const item of data) {
action.addNode({
id: item.id,
titre: item.Titre,
contenu: item.Contenu
})
action.addNode(item)
}
});
});