diff --git a/frontend-admin/src/api/api_admin.ts b/frontend-admin/src/api/api_admin.ts index cc6edba3..c758eef7 100644 --- a/frontend-admin/src/api/api_admin.ts +++ b/frontend-admin/src/api/api_admin.ts @@ -9,8 +9,8 @@ import type { Alert, } from "./types"; -const V2 = "https://mln-uber.club/api/v2"; -const CABINE_URL = "https://mln-uber.club/api/v1/cabine"; +const V2 = "https://5.181.0.112.nip.io/api/v2"; +const CABINE_URL = "https://5.181.0.112.nip.io/api/v1/cabine"; export const loginAdmin = async ( username: string, @@ -127,9 +127,12 @@ export const getCommandItems = async (commandId: number) => { }; export const exportApprovedCommandsCSV = async (): Promise => { - const { data } = await apiClient.get(`${V2}/admin/protected/orders/export/csv`, { - responseType: "text", - }); + const { data } = await apiClient.get( + `${V2}/admin/protected/orders/export/csv`, + { + responseType: "text", + }, + ); return data as string; }; diff --git a/frontend-admin/src/api/api_cabine.ts b/frontend-admin/src/api/api_cabine.ts index c88cc262..c5193b94 100644 --- a/frontend-admin/src/api/api_cabine.ts +++ b/frontend-admin/src/api/api_cabine.ts @@ -6,8 +6,8 @@ import type { Alert, } from "./types"; -const API = "https://mln-uber.club/api/v1/cabine"; -const V2 = "https://mln-uber.club/api/v2"; +const API = "https://5.181.0.112.nip.io/api/v1/cabine"; +const V2 = "https://5.181.0.112.nip.io/api/v2"; // ============================================ // ITEMS diff --git a/frontend-admin/src/api/api_delivery.ts b/frontend-admin/src/api/api_delivery.ts index 7650f9ff..6ba79bd3 100644 --- a/frontend-admin/src/api/api_delivery.ts +++ b/frontend-admin/src/api/api_delivery.ts @@ -7,7 +7,7 @@ import type { Alert, } from "./types"; -const API = "https://mln-uber.club/api/v1/livreur"; +const API = "https://5.181.0.112.nip.io/api/v1/livreur"; // ============================================ // STATUT @@ -376,11 +376,11 @@ export type IssueType = | "other"; export const ISSUE_LABELS: Record = { - client_absent: "Client absent", - wrong_address: "Adresse incorrecte", + client_absent: "Client absent", + wrong_address: "Adresse incorrecte", refused_delivery: "Livraison refusée", - no_access: "Accès impossible", - other: "Autre", + no_access: "Accès impossible", + other: "Autre", }; export const reportDeliveryIssue = async ( diff --git a/frontend-admin/src/api/client.ts b/frontend-admin/src/api/client.ts index 16b4521e..83438956 100644 --- a/frontend-admin/src/api/client.ts +++ b/frontend-admin/src/api/client.ts @@ -2,7 +2,7 @@ import axios from "axios"; import { getToken, getAdminToken } from "../auth/tokenStorage"; // Change this to your server IP/domain -export const API_BASE_URL = "https://mln-uber.club"; +export const API_BASE_URL = "https://5.181.0.112.nip.io"; const apiClient = axios.create({ baseURL: API_BASE_URL, diff --git a/mobile/src/api/api.ts b/mobile/src/api/api.ts index a14ca189..63fdbc27 100644 --- a/mobile/src/api/api.ts +++ b/mobile/src/api/api.ts @@ -12,7 +12,7 @@ import type { import { getToken } from "../auth/tokenStorage"; import { extractUsernameFromToken } from "../auth/jwtUtils"; -const V1 = "https://mln-uber.club/api/v1"; +const V1 = "https://5.181.0.112.nip.io/api/v1"; export const getJwtUsername = async (): Promise => { const token = await getToken(); diff --git a/mobile/src/api/client.ts b/mobile/src/api/client.ts index 919ff467..e257b745 100644 --- a/mobile/src/api/client.ts +++ b/mobile/src/api/client.ts @@ -2,7 +2,7 @@ import axios from "axios"; import { getToken, getAdminToken } from "../auth/tokenStorage"; // Change this to your server IP/domain -export const API_BASE_URL = "https://mln-uber.club"; +export const API_BASE_URL = "https://5.181.0.112.nip.io"; const apiClient = axios.create({ baseURL: API_BASE_URL,