function parseParams(pattern, uri) {
  let params = {}

  const patternArray = pattern.split('/').filter((path) => { return path != '' })
  const uriArray = uri.split('/').filter((path) => { return path != '' })

  patternArray.map((pattern, i) => {
      if (/^:/.test(pattern)) {
          params[pattern.substring(1)] = uriArray[i]
      }
  })
  return params
}
Desc
@param {String} pattern - The pattern
@param {String} uri - The current uri
@return {Object} - The uri params object