export default {
myFun2: async () => {
//use async-await or promises
const res = await fetch('url', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({'defaultOptionValue': "dasdsa" })
});
const data = await res.json()
return data;
}
}
Return:
``
11:00:34
The value at template.txt_Restore.text is invalid
List.widget
where url = REST POST Endpoint