Generateurv2/frontend/apis/exoInstance.instance.js

12 lines
365 B
JavaScript
Raw Normal View History

2022-05-18 10:15:54 +02:00
import axios from "axios";
import { csrftoken } from "../utils/utils.js";
export const exoInstance = axios.create({
baseURL: `${process.env.NEXT_PUBLIC_HOST}/api/exos/`,
headers: {
"Content-Type": "application/json",
Accept: "application/json",
"Access-Control-Allow-Origin": "*",
"X-CSRFToken": csrftoken != undefined ? csrftoken: '',
},
});