且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

解析来自Node js + handlebars的POST请求

更新时间: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.