diff --git a/src/pages/public/Login.jsx b/src/pages/public/Login.jsx index 5d9dbc3..ee38df2 100644 --- a/src/pages/public/Login.jsx +++ b/src/pages/public/Login.jsx @@ -1,4 +1,3 @@ -// src/pages/public/Login.jsx import { useState } from 'react'; import { useNavigate, Link } from 'react-router-dom'; import { loginClient } from '../../services/api'; diff --git a/src/services/api.js b/src/services/api.js index 50a5700..4fb4025 100644 --- a/src/services/api.js +++ b/src/services/api.js @@ -17,23 +17,23 @@ const apiCall = async (url, body = {}) => { }; export const loginClient = (email, password) => - apiCall('/api/guest/client/login', { email, password }); + apiCall('https://web.gise.be/api/guest/client/login', { email, password }); export const getClientProfile = () => - apiCall('/api/client/profile/get'); + apiCall('https://web.gise.be/api/client/profile/get'); // Récupère la liste des services/commandes du client export const getClientOrders = () => - apiCall('/api/client/order/get_list'); + apiCall('https://web.gise.be/api/client/order/get_list'); // Récupère les détails techniques du service rattaché à une commande export const getOrderService = (order_id) => - apiCall('/api/client/order/service', { id: order_id }); + apiCall('https://web.gise.be/api/client/order/service', { id: order_id }); // Fonction d'inscription unifiee pour créer un compte client et commander un service en une seule étape export const registerUnifiedClient = async (email, username, password, firstName, lastName) => { try { - const response = await fetch('/custom_api/signup.php', { + const response = await fetch('https://web.gise.be/custom_api/signup.php', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({