Generateurv2/frontend/apis/roomInstance.intance.js

13 lines
368 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 roomInstance = axios.create({
baseURL: `${process.env.NEXT_PUBLIC_HOST}/api/room/`,
headers: {
"Content-Type": "application/json",
Accept: "application/json",
"Access-Control-Allow-Origin": "*",
"X-CSRFToken": csrftoken != undefined ? csrftoken : "",
},
});