ive been dealing with this error
throw new Error(msg);
^
Error: Route.post() requires a callback function but got a [object Undefined]
at Route.<computed> [as post] (C:\Users\I\python\x\workspace\choreapp\node_modules\express\lib\router\route.js:216:15)
at proto.<computed> [as post] (C:\Users\I\python\x\workspace\choreapp\node_modules\express\lib\router\index.js:521:19)
at Object.<anonymous> (C:\Users\I\python\x\workspace\choreapp\routes\taskRoutes.js:8:8)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (C:\Users\I\python\x\workspace\choreapp\server.js:4:20)
Node.js v21.7.3```
im pretty sure its q middleware issue but ive changed it and tried to troubleshoot it nearly 25 times now and i cant figure it out, any help would be appreciated, been at this for hours