Express error – TypeError: Router.use() requires middleware function but got a Object
I am getting this error when I run npm start to run my express app. my app.js code my index.js code I am quirte new to using Node and express. I cant see where I have gone wrong. Can anybody see what my problem is?