Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
Updates readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gvergnaud committed Jun 11, 2017
1 parent b1597da commit adbdab0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,11 @@ import Router from '../routes'
Prefetch film 2
</button>
```

### Router.getRoutePath(name, params)
```js
import Router from '../routes'

console.log(Router.getRoutePath('characterAndFilm', { characterId: 2, filmId: 5 }))
// => '/character-and-film/2/5'
```

0 comments on commit adbdab0

Please sign in to comment.