Is there a way in which I could write data to a url like https://xenialbase.web.app/file.json using axios or node-fetch in javscript and then display the value in that url this is the code I tried using axios but after refreshing the link I am not being able to see that data. I even get a statuscode 200 (ok) :
var axios = require("axios")
axios
.post('https://xenialbase.web.app/file.json', {
todo: 'Buy the milk'
})
.then(res => {
console.log(`statusCode: ${res.status}`)
console.log(res)
})
.catch(error => {
console.error(error)
})