Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 9, 2024
1 parent 8dd80ed commit 484a77e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ addRoute(router, "GET", "/path/foo/**:name", {
**Match route to access matched data:**

```js
// Returns { payload: 'this path' }
// Returns [{ payload: 'this path' }]
findRoute(router, "GET", "/path");

// Returns { payload: 'named route', params: { name: 'fooval' } }
// Returns [{ payload: 'named route', params: { name: 'fooval' } }]
findRoute(router, "POST", "/path/fooval");

// Returns { payload: 'wildcard route' }
// Returns [{ payload: 'wildcard route' }]
findRoute(router, "GET", "/path/foo/bar/baz");

// Returns undefined (no route matched for/)
Expand Down

0 comments on commit 484a77e

Please sign in to comment.