export const fullRouteParams = <T extends string>(path: T, params: object) => {
  let processPath: string = path

  for (const [key, value] of Object.entries(params)) {
    const rg = new RegExp(`:${key}/?`)
    processPath = processPath.replace(rg, value as string + '/')
  }

  return processPath
}

