const express = require('express')

module.exports = function (...args) {
  const router = express.Router()
  return router.use(...args)
}

const express = require('express')

module.exports = function (...args) {
  const router = express.Router({mergeParams: true})
  return router.use(...args)
}

use {mergeParams: true} with express.Router in operation