更新时间:2023-11-16 17:01:58
向Express应用添加路由和/或中间件的顺序很重要.因此,请在使用bodyParser.*
中间件之后移动app.use('/', routes);
.
The order in which you add routes and/or middleware to your Express app matters. So move app.use('/', routes);
after your bodyParser.*
middleware usage.