[Vuejs]-How to properly configure my backend in order to receive data from my form? I'm using Vue.js

0👍

You are sending a POST request to http://localhost:3000/, but this is set as a GET in your server. So try:

app.post("/", function(req, res) {
    res.sendfile(__dirname + '/dist/index.html'); 
})

Leave a comment