Skip to content

Commit

Permalink
Update route-files-v2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence authored Feb 17, 2023
1 parent 86af661 commit 52450b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/file-conventions/route-files-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ routes/
app_.projects.$id.roadmap.tsx
```

Some, or all of them can be folders holding their own modules inside.
Some, or all of them can be folders holding their own `route` module inside.

```
routes/
Expand Down Expand Up @@ -359,7 +359,7 @@ routes/
contact-us.tsx
```

Note that `app/index.tsx` is _not_ the "index route" for `app/`. It is Note's "index module" for the directory `routes/app/`. The index route for `app/` is `app._index/index.tsx`. The only thing that contributes to the route path is the directory name.
Note that when you turn a route module into a folder, the route module becomes `folder/route.tsx`, all other modules in the folder will not become routes. For example:

```
# these are the same route:
Expand Down

0 comments on commit 52450b3

Please sign in to comment.