All Questions
1 question
0
votes
1
answer
2k
views
Dynamic axios request url in Vue 3 Composables
I've tried this and it worked:
const posts = ref{[]}
const urlEndPoint = 'posts'
const getPosts = async () => {
let response = await axios.get('/api/'+urlEndPoint)
...