API 404 using VueJs, ExpressJs and Mongoose
add in Server.js, you problem Cross-domain.In place do not origin your url than accesses the vue.js
app.all('*', function (req, res, next) {var origin = req.get('origin');res.header('Access-Control-Allow-Origin', 'http://localhost:8080');res.header('Access-Control-Allow-Credentials', true);res.header('Access-Control-Allow-Headers', 'X-Requested-With');res.header('Access-Control-Allow-Methods', 'PUT, GET, POST, DELETE, OPTIONS');res.header('Access-Control-Allow-Headers', 'Content-type, Accept, Authorization');if (req.method === 'OPTIONS') { return res.status(200).end();}next();
});