index.js:458 throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn)) ^ TypeError: Router.use() requires a middleware function but got a string at Function.use code example
Example: throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
module.exports = router;