Error: Route.get() requires a callback function but got a [object Object]

Опубликовано: 03 Апрель 2022
на канале: BugCode
14,869
86

Error: Route.get() requires a callback function but got a [object Object]
at Route._computed_ [as get] (D:\programming\nodejs\expressjs\node_modules\express\lib\router\route.js:202:15)
at Function.proto._computed_ [as get] (D:\programming\nodejs\expressjs\node_modules\express\lib\router\index.js:516:19)
at Object._anonymous_ (D:\programming\nodejs\expressjs\routerHandler\adminHandler.js:27:7)

throw new Error(msg);
#Error:Route.get()
#requiresCallbackFunctionButGotA[object Object]
#.js:27:7