T
TanStack11mo ago
fair-rose

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
like-gold
like-gold11mo ago
checkout router.routesById and router.routesByPath

Did you find this page helpful?