chore: fix url
This commit is contained in:
@@ -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<string> => {
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user