diff --git a/templates/assets/js/index.js b/templates/assets/js/index.js index 1cd93d1..84c72ce 100644 --- a/templates/assets/js/index.js +++ b/templates/assets/js/index.js @@ -22,7 +22,7 @@ async function validatePath() { const response = await fetch('/validate-path', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ path }), + body: JSON.stringify({ pathName: path }), // <- ici on envoie pathName et plus path }); if (response.ok) {