resolution connexions
Deploy Nexus Portal to HestiaCP (FTP) / build-and-deploy (push) Successful in 14s
Deploy Nexus Portal to HestiaCP (FTP) / build-and-deploy (push) Successful in 14s
This commit is contained in:
@@ -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';
|
||||
|
||||
+5
-5
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user