我正在尝试导出中间件函数,以便其他类可以调用它。profile(app);\node_modules\express\lib\router\route.js:202 ^
Error: Route.get() requires a callback function but got a [objectUndefine
我正在使用Express构建Node API,但使用JSON文件作为持久数据。在构建我的路由的过程中,我得到了一个错误:Route.post() requires a callback function but got a [objectUndefined]我想要创建一个新产品errors: extractedErrors};
问题是我不能继续前进,因为我不能得到为什么我会得到错误的线索
我不知道为什么我一直收到这个错误: C:\Users\yurit\Desktop\EcommcereAPI\node_modules\express\lib\router\route.js:202throw new Error(msg);
Error: Route.put() requires a callback function but got a [objectUndefinedas put] (C:\Users\yurit\Desktop\EcommcereAPI\node_modules\express\l