Alguém sabe o porque? deixei o meu código abaixo
C:\Users\55439\OneDrive\Área de Trabalho\dev-rafael\node-js-alura\api-sequelize-mysql-orm-node\node_modules\express\lib\router\route.js:211
throw new Error(msg);
^
Error: Route.get() requires a callback function but got a [object Undefined]
at Route.<computed> [as get] (C:\Users\55439\OneDrive\Área de Trabalho\dev-rafael\node-js-alura\api-sequelize-mysql-orm-node\node_modules\express\lib\router\route.js:211:15)
at Function.proto.<computed> [as get] (C:\Users\55439\OneDrive\Área de Trabalho\dev-rafael\node-js-alura\api-sequelize-mysql-orm-node\node_modules\express\lib\router\index.js:521:19)
at Object.<anonymous> (C:\Users\55439\OneDrive\Área de Trabalho\dev-rafael\node-js-alura\api-sequelize-mysql-orm-node\api\routes\pessoasRoute.js:12:4)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\55439\OneDrive\Área de Trabalho\dev-rafael\node-js-alura\api-sequelize-mysql-orm-node\api\routes\index.js:2:17)
[nodemon] app crashed - waiting for file changes before starting...