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