axios e api code example
Example 1: axios get
import axios from 'axios';
await axios.get('/user', {
params: {
ID: 12345
}
})
Example 2: axios
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
import axios from 'axios';
await axios.get('/user', {
params: {
ID: 12345
}
})
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>