I have an error while running a node express server:
[nodemon] starting `node src/index.js`
C:\Users\bonpa\Downloads\todolistproject\node_modules\express\lib\router\index.js:138
debug('dispatching %s %s', req.method, req.url);
^
TypeError: Cannot read property 'method' of undefined
at Function.handle (C:\Users\bonpa\Downloads\todolistproject\node_modules\express\lib\router\index.js:138:34)
at new router (C:\Users\bonpa\Downloads\todolistproject\node_modules\express\lib\router\index.js:46:12)
at Object.<anonymous> (C:\Users\bonpa\Downloads\todolistproject\src\api\todos\index.js:6:14)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\bonpa\Downloads\todolistproject\src\routes.js:1:80)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
[nodemon] app crashed - waiting for file changes before starting...
link to my project repo git : https://github.com/bonpapajosie/todolist
pls help