ypeError: Router.use() requires a middleware function but got a Object code example
Example 1: throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
module.exports = router;
Example 2: TypeError: Router.use() requires a middleware function but got a Object
module.exports = router;