From ae879f4aa2e92c6a1aebd7462508190b923c5bb9 Mon Sep 17 00:00:00 2001 From: Cedric Date: Fri, 3 Jul 2026 14:37:15 +0200 Subject: [PATCH] Actualiser js/auth.js --- js/auth.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/js/auth.js b/js/auth.js index 223c553..3cbcadd 100644 --- a/js/auth.js +++ b/js/auth.js @@ -1,13 +1,6 @@ let API_BASE_URL; +API_BASE_URL = 'https://monpetitpari.fr/api'; -// Si on est en local (localhost ou IP locale) -if (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') { - API_BASE_URL = 'http://localhost/mon-petit-pari/api'; -} -// Si on est en production (sur le vrai nom de domaine) -else { - API_BASE_URL = 'https://monpetitpari.fr/api'; -} // Gestion du token function getToken() {