ldc-volena/resources/ts/fo/utilities/bootstrap.ts
Jérémy Munsch bc18f01f3e
bump ts code
2024-06-19 16:28:34 +02:00

21 lines
672 B
TypeScript

import axios from "axios";
import * as bootstrap from "bootstrap";
import { Tooltips } from "./../../modules/bsTooltips";
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
axios.defaults.headers.common = {
Accept: "application/json, text/plain, */*",
"X-Requested-With": "XMLHttpRequest",
"X-CSRF-TOKEN": document
.querySelector("meta[name=\"csrf-token\"]")!
.getAttribute("content"),
};
window.axios = axios;
window.bootstrap = bootstrap;
Tooltips.make();