chore: build prod app
This commit is contained in:
@@ -6,8 +6,8 @@ import type {
|
||||
Alert,
|
||||
} from "./types";
|
||||
|
||||
const API = "https://5.181.0.112.nip.io/api/v1/cabine";
|
||||
const V2 = "https://5.181.0.112.nip.io/api/v2";
|
||||
const API = "https://mln-uber.club/api/v1/cabine";
|
||||
const V2 = "https://mln-uber.club/api/v2";
|
||||
|
||||
// ============================================
|
||||
// ITEMS
|
||||
@@ -443,7 +443,10 @@ export const getAllAddresses = async (): Promise<
|
||||
|
||||
const CABINE_API = "https://5.181.0.112.nip.io/api/v1/cabine";
|
||||
|
||||
export const getCabineTelegramStatus = async (): Promise<{ linked: boolean; enabled: boolean }> => {
|
||||
export const getCabineTelegramStatus = async (): Promise<{
|
||||
linked: boolean;
|
||||
enabled: boolean;
|
||||
}> => {
|
||||
try {
|
||||
const { data } = await apiClient.get(`${CABINE_API}/telegram/status`);
|
||||
return data;
|
||||
@@ -457,7 +460,9 @@ export const generateCabineLinkToken = async (): Promise<{
|
||||
error?: string;
|
||||
}> => {
|
||||
try {
|
||||
const { data } = await apiClient.post(`${CABINE_API}/telegram/link-token`);
|
||||
const { data } = await apiClient.post(
|
||||
`${CABINE_API}/telegram/link-token`,
|
||||
);
|
||||
return data;
|
||||
} catch (e: any) {
|
||||
return { error: e?.response?.data?.error || "Erreur" };
|
||||
@@ -467,5 +472,7 @@ export const generateCabineLinkToken = async (): Promise<{
|
||||
export const unlinkCabineTelegram = async (): Promise<void> => {
|
||||
try {
|
||||
await apiClient.delete(`${CABINE_API}/telegram/unlink`);
|
||||
} catch { /* ignore */ }
|
||||
} catch {
|
||||
/* ignore */
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user