The Reason For This
Folder with index.tsx
When you create a folder (like admin) and include an index.tsx, the fs-routes engine uses that file to generate the route for /admin. Any additional files in that folder (such as users.tsx) aren’t automatically turned into child routes.
Dot Notation Files
The automatic route generation relies on a naming convention where the dot separates the parent and child route names. For example, admin.users.tsx clearly indicates a child route under /admin.
The Solutions For The Issue
Use Dot Notation
Move the users.tsx file out of the admin folder and rename it to admin.users.tsx. This will automatically generate the desired /admin/users route.
Manually Nest Routes
If you prefer to keep the folder structure for organization, you can keep your files in the folder and then manually define the nested routes inside admin/index.tsx by importing and rendering them as children routes.