No terminal retorna isso apos iniciar o servidor mas a principio clonei o projeto da branch-2 e apenas fiz as modificações pro meu mongoDB
[nodemon] 2.0.22
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server.js`
/home/goddi/Documentos/htdocs/alura-courses/guia-do-javaScripteiro-das-galaxias/NodejsAPI-Rest-com-Express-e-MongoDB-V2/node_modules/.pnpm/express@4.18.2/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] (/home/goddi/Documentos/htdocs/alura-courses/guia-do-javaScripteiro-das-galaxias/NodejsAPI-Rest-com-Express-e-MongoDB-V2/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/route.js:211:15)
at Function.proto.<computed> [as get] (/home/goddi/Documentos/htdocs/alura-courses/guia-do-javaScripteiro-das-galaxias/NodejsAPI-Rest-com-Express-e-MongoDB-V2/node_modules/.pnpm/express@4.18.2/node_modules/express/lib/router/index.js:521:19)
at file:///home/goddi/Documentos/htdocs/alura-courses/guia-do-javaScripteiro-das-galaxias/NodejsAPI-Rest-com-Express-e-MongoDB-V2/src/routes/livrosRoutes.js:8:4
at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)
[nodemon] app crashed - waiting for file changes before starting...