params with axios code example
Example 1: how to send data in query param in axios in get request
const res = await axios.get('https://httpbin.org/get', { params: { answer: 42 } });
Example 2: axios library
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>