chore: add waf
This commit is contained in:
@@ -9,8 +9,8 @@ import type {
|
||||
Alert,
|
||||
} from "./types";
|
||||
|
||||
const V2 = "http://5.181.0.112/api/v2";
|
||||
const CABINE_URL = "http://5.181.0.112/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";
|
||||
|
||||
// ============================================
|
||||
// AUTH
|
||||
@@ -622,7 +622,7 @@ export const getCommandCountByStatus = async (
|
||||
// CATÉGORIES
|
||||
// ============================================
|
||||
|
||||
const V1_PUBLIC = "http://5.181.0.112/api/v1";
|
||||
const V1_PUBLIC = "https://5.181.0.112.nip.io/api/v1";
|
||||
|
||||
export interface Category {
|
||||
id: number;
|
||||
|
||||
@@ -6,8 +6,8 @@ import type {
|
||||
Alert,
|
||||
} from "./types";
|
||||
|
||||
const API = "http://5.181.0.112/api/v1/cabine";
|
||||
const V2 = "http://5.181.0.112/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
|
||||
@@ -395,7 +395,7 @@ export const markCabineNotificationsRead = async (): Promise<void> => {
|
||||
export const getPublicSettings = async (): Promise<PublicSettings> => {
|
||||
try {
|
||||
const { data } = await apiClient.get(
|
||||
`http://5.181.0.112/api/v1/app-settings`,
|
||||
`https://5.181.0.112.nip.io/api/v1/app-settings`,
|
||||
);
|
||||
return {
|
||||
penalties_enabled: data.penalties_enabled ?? true,
|
||||
|
||||
@@ -7,7 +7,7 @@ import type {
|
||||
Alert,
|
||||
} from "./types";
|
||||
|
||||
const API = "http://5.181.0.112/api/v1/livreur";
|
||||
const API = "https://5.181.0.112.nip.io/api/v1/livreur";
|
||||
|
||||
// ============================================
|
||||
// STATUT
|
||||
|
||||
@@ -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 = "http://5.181.0.112";
|
||||
export const API_BASE_URL = "https://5.181.0.112.nip.io";
|
||||
|
||||
const apiClient = axios.create({
|
||||
baseURL: API_BASE_URL,
|
||||
|
||||
Reference in New Issue
Block a user