I am trying to post data in my database but every time I do try to dod it I get a 405 error. Also python has an error saying that I am submitting an empty list. Please point me in the right direction to solve this problem.
const axios = require('axios')
let URL = 'http://127.0.0.1:5000/Walls/saveComments'
let HEADERS = {'Content-Type': 'text/plain;charset=utf-8'}
axios.post(URL, HEADERS, {
'post': post,
'time': time
})
.then(function (response) {
console.log(response);
})
// Axios Call to Save A Post in Backend
}