Oi alguém pode me ajudar?.. vi revi e não achei diferença do código do vídeo
{ //isso é o que eu coloco no insomnia
"nome": "harry",
"imagem": "./assets/salsicha.jpg"
}
TypeError: uploadDeArquivo is not a function
at Pet.adiciona (C:\Users\User\Desktop\NodeREST\models\pets.js:9:9)
at C:\Users\User\Desktop\NodeREST\controllers\pets.js:7:13
at Layer.handle [as handle_request] (C:\Users\User\Desktop\NodeREST\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\User\Desktop\NodeREST\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\Users\User\Desktop\NodeREST\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\User\Desktop\NodeREST\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\User\Desktop\NodeREST\node_modules\express\lib\router\index.js:281:22 at Function.process_params (C:\Users\User\Desktop\NodeREST\node_modules\express\lib\router\index.js:335:12)
at next (C:\Users\User\Desktop\NodeREST\node_modules\express\lib\router\index.js:275:10)
at C:\Users\User\Desktop\NodeREST\node_modules\body-parser\lib\read.js:130:5