Skip to content

Commit

Permalink
Add sample of searchParams to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-light committed Jan 14, 2023
1 parent ea51af4 commit c8e64bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ routes.users.url(); // '/users'
routes.users.statistic.url(); // '/users/statistic'
routes.users.statistic.relativeUrl(); // 'statistic'

routes.users.statistic.url({ view: 'print', filter: 'no' }); // '/users/statistic?view=print&filter=no'
routes.users.statistic.url('/*'); // '/users/statistic/*'

routes.user.userId().relativeUrl(); // ':userId'
routes.user.userId('18').private_info.url(); // '/user/18/private-info'
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nice-web-routes",
"version": "1.0.2",
"version": "1.0.3",
"description": "Easy way to create nice web routes for you application",
"contributors": [
"Artem Ignatev <[email protected]>"
Expand Down

0 comments on commit c8e64bf

Please sign in to comment.