Skip to content

Commit

Permalink
chore(router): Add more code comments to analyzeRoutes (redwoodjs#10569)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed May 14, 2024
1 parent 9dcaf31 commit 0f7ec41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/router/src/analyzeRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ export function analyzeRoutes(
sets: previousSets,
}

// e.g. namedRoutesMap.homePage = () => '/home'
// Example: namedRoutesMap.home = () => '/home'
// Example: namedRoutesMap.userExample = (args) => `/user-examples/${args.id}`
namedRoutesMap[name] = (args = {}) => replaceParams(path, args)
}
}
Expand Down

0 comments on commit 0f7ec41

Please sign in to comment.