C:\Users\Washington\Desktop\GitProjects\be-the-hero\backend\src\index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (C:\Users\Washington\Desktop\GitProjects\be-the-hero\backend\src\controllers\OngController.js:3:26)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\Washington\Desktop\GitProjects\be-the-hero\backend\src\controllers\OngController.js',
'C:\Users\Washington\Desktop\GitProjects\be-the-hero\backend\src\routes.js',
'C:\Users\Washington\Desktop\GitProjects\be-the-hero\backend\src\index.js'
]
} [nodemon] app crashed - waiting for file changes before starting...
Olá pessoal eu pensei em uma funcionalidade para alterar o incident no frontend. Clica no incident, vai para uma tela semelhante ao cadastro, entretanto com os campos já preenchidos com os dados do incident, o adm apenas alterar 1 ou mais campos que deseja e clica em salvar.
Eu criei uma rota no backend com o método PUT, e pensei em passar os dados do incident para a página do formulário e inserir nos inputs os dados do incident.