Skip to content

Commit

Permalink
docs: fix invalid custom routes example in conventions.md (remix-run#…
Browse files Browse the repository at this point in the history
…1174)

Co-authored-by: Kent C. Dodds <[email protected]>
  • Loading branch information
2 people authored and hollandThomas committed Jan 18, 2022
1 parent 5738a8b commit 277fb74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- arange
- archwebio
- arganaphangquestian
- arvigeus
- AriGunawan
- ascorbic
- ashleyryan
Expand Down
4 changes: 2 additions & 2 deletions docs/api/conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ exports.routes = async (defineRoutes) => {
// A common use for this is catchall routes.
// - The first argument is the React Router path to match against
// - The second is the relative filename of the route handler
route("/some/path/*", "catchall.tsx")
route("/some/path/*", "catchall.tsx");

// if you want to nest routes, use the optional callback argument
route("some/:path", "some/route/file.js", () => {
Expand All @@ -61,7 +61,7 @@ exports.routes = async (defineRoutes) => {
route("relative/path", "some/other/file")
});

}
})
}
```

Expand Down

0 comments on commit 277fb74

Please sign in to comment.