T
TanStack8mo ago
harsh-harlequin

Is there any way to get available routes from specific route point?

For example, i have this kind of structure:
- projects
- index.tsx
- timer
- index.tsx
- todo
-index.tsx
- projects
- index.tsx
- timer
- index.tsx
- todo
-index.tsx
And inside projects/index.ts i would like to list all available routes(timer,todo). Does anyone know how to do this automatically? Unless i have to do this manually?
1 Reply
flat-fuchsia
flat-fuchsia8mo ago
checkout router.routesById and router.routesByPath

Did you find this page helpful?