16 lines
428 B
TypeScript
16 lines
428 B
TypeScript
import axios from "axios";
|
|
import { CookieValueTypes } from "cookies-next";
|
|
const instance = { id: 1 };
|
|
|
|
axios.defaults.baseURL = process.env.NEXT_PUBLIC_BASE_URL_APP;
|
|
// axios.defaults.baseURL = "https://shahrbinapi.shetabdahi.ir/";
|
|
|
|
|
|
// Get Captcha
|
|
export async function getCaptcha() {
|
|
const data = await axios.get(`/api/${instance.id}/Authenticate/Captcha`, {
|
|
responseType: "blob",
|
|
});
|
|
return data;
|
|
}
|