Skip to main content

All Questions

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) ...
Daddi Al Amoudi's user avatar