fetch to axios

i have one function in fetch. i need to convert it to axios. In fetch, its working fine but in axios, its not working https://codefile.io/f/X6XoOM0XLC I dont what i am missing in axios. Is i am correctly passing in axios. plz help me
Codefile.io
Code — Codefile
Create collaborative code files online for your technical interviews, pair programming, teaching, etc.
2 Replies
glutonium
glutonium9mo ago
i never used axios but shouldn't it be something like simply changing the fetch() to axios.method()
const response = awat axios.get("url")
MarkBoots
MarkBoots9mo ago
what is not working? what is the error you receive?
Want results from more Discord servers?
Add your server