我已经为一个学校项目创建了自己的API,其中包含几条路由: The few routes app.get('/AREA/', (req, res) => res.status(200).send({, User.create);
app.get('/AREA/User', User.recup); 下面是我调用最后一个get和post调用的方法: 客户端: How I call in the component('/AREA/
在使用javascript 4时,当我尝试使用sendFile来提供包含指向Express.js文件或图像的附加链接的页面时,浏览器不会加载这些其他资源。如果我使用URL访问页面,它工作得很好,只是当我尝试使用sendFile方法加载页面时才会出现问题。express');app.use(express.static('client'));
var path =