if (typeof path === 'string' || path instanceof RegExp || Array.isArray(path)) {
    middleware = Array.prototype.slice.call(arguments, 2)
  } else {
    middleware = Array.prototype.slice.call(arguments, 1)
    path = name