Actualiser js/auth.js
This commit is contained in:
+1
-8
@@ -1,13 +1,6 @@
|
|||||||
let API_BASE_URL;
|
let API_BASE_URL;
|
||||||
|
|
||||||
// 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';
|
API_BASE_URL = 'https://monpetitpari.fr/api';
|
||||||
}
|
|
||||||
|
|
||||||
// Gestion du token
|
// Gestion du token
|
||||||
function getToken() {
|
function getToken() {
|
||||||
|
|||||||
Reference in New Issue
Block a user