I want to return the response of axios but always the response that returned is undefined:
wallet.registerUser=function(data){ axios.post(\'http://localhost:8080
I used async and await methods and wrapped my axios call and function calling the axios call in these methods. I returned axios value as well as returned response object within it. I have shared the snippet in the below link.
Returning data from Axios API