From adbdab0dad3dce71aa60166a121266d91cd80c7d Mon Sep 17 00:00:00 2001 From: gvergnaud Date: Sun, 11 Jun 2017 12:32:56 +0200 Subject: [PATCH] Updates readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index efcf524..f9a0f56 100644 --- a/README.md +++ b/README.md @@ -144,3 +144,11 @@ import Router from '../routes' Prefetch film 2 ``` + +### Router.getRoutePath(name, params) +```js +import Router from '../routes' + +console.log(Router.getRoutePath('characterAndFilm', { characterId: 2, filmId: 5 })) +// => '/character-and-film/2/5' +```